Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files to another directory
Message
From
09/11/2016 16:47:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/11/2016 16:44:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01642909
Message ID:
01643013
Views:
31
>>>>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.

Or remembers them from some XX century version when they (or just one) may have been right?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform