KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Copy not working...

 
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic
View previous topic :: View next topic  
Author Message
Frank Bonefont
KiXforms Novice
KiXforms Novice


Joined: 23 Dec 2007
Posts: 3
Location: Riverside, CA

PostPosted: Fri Apr 03, 2009 3:56 am    Post subject: Copy not working... Reply with quote

Hi folks,
Can someone tell me what the manual isn't. I'm using a simple "Copy" command and I'm having all sorts of issues. Just to keep things short I'm using the following to attempt a copy of files and folders to another folder:

here's a piece of the code; didn't want to make things complicated:

$Name = "Dad"
Dim $Flders[6]
$Flders[0] = "\Documents and Settings\" + $Name + "\My Documents"
$Flders[1] = "\Documents and Settings\" + $Name + "\Local Settings\Application Data\Microsoft\Outlook"
$Flders[2] = "\Documents and Settings\" + $Name + "\Desktop"
$Flders[3] = "\Documents and Settings\" + $Name + "\Favorites"
$Flders[4] = "\Entrust"
$Flders[5] = "\TurboEIR"

$NEWDIR = "F:" + "\" + $Name + "_Profile"
If Exist("C:" + $Flders[0])
If Not Exist($NEWDIR)
MD $NEWDIR
EndIf
For $i = 0 to UBound($Flders)
$CURDIR = "C:" + $Flders[$i]
Copy $CURDIR $NEWDIR /e /s /h
Next
EndIf

Everything works fine up until the copying. It will not copy into the specified folder on the F: drive.

Appreciate your help...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Fri Apr 03, 2009 1:30 pm    Post subject: Reply with quote

This forum is for the GUI interface of KIX, you would be much better served by posting over at the KiXtart forum @ http://www.kixtart.org
_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Sealeopard
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 436
Location: Boston, MA

PostPosted: Sat Apr 04, 2009 1:52 am    Post subject: Reply with quote

When copying to a directory the directory name needs to be terminated with a backslash "\"
_________________
Jens

'There are two kinds of vessels, submarines and targets.'
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Starters Code Clinic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group