Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files to another directory
Message
From
09/11/2016 16:44:21
 
 
To
09/11/2016 16:17:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01642909
Message ID:
01643012
Views:
33
>>>SET DEFAULT TO c:\citisprint\attach
>>>
>>>lcFileName = SYS(2000,"c:\citisprint\sttach\*.*")
>>>DO WHILE NOT EMPTY(lcFileName)
>>> RENAME (lcFileName) TO ("c:\citisprint\attachxls\"+lcFileName) && Be careful, this will MOVE file not just copy
>>> lcFileName = SYS(2000,"c:\citisprint\attach\*.*",1)
>>>ENDDO
>>
>>The files must be on the same drive for this code to work. If they are on separate drives, you must first copy the files, make sure that they are actually copied and then delete the old ones.
>
>Not required to be on the same drive. I use the same syntax for years to move files from my camera's SD card (usually appears as K: disk or some such letter) to a set of folders (by year and date) on my Q: drive, no problem at all.

Now that you say it.... Funny how one forgets things.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform