Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files
Message
 
To
05/02/1999 17:45:28
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00184556
Message ID:
00184564
Views:
21
>This one goes to all you gu-ru's out there
>
>Is there a way to copy files from one directory to another programmatically? I am programming a backup utility for an application.
>
>Thanks
>
>Jim
FromDir = 'MyOrigDir'
ToDir = 'MyBakDir'
FileCt = ADIR(FileArr, m.FromDir+'\*.*', ['HS'])
FOR FileNum = 1 TO m.FileCt
  COPY FILE (m.FromDir + '\' + FileArr[m.FileNum, 1) TO (m.ToDir + '\' + FileArr[m.FileNum, 1])
ENDFOR
HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Reply
Map
View

Click here to load this message in the networking platform