Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hope to copy folder1 to folder1bak?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173253
Message ID:
00173276
Views:
31
Hi Brenda,

You can do this using Windows Scripting Host:

fso = CreateObject("Scripting.FileSystemObject")
FSO.CopyFolder("c:\folder1", "d:\folder1bak")

WSH is available for download for Windows 95, and is built into Windows 98 and NT. You'll find it along with more extensive information at Microsoft's Sripting Technologies site.

>Having trouble with the syntax. What to make a backup copy of folder1, something like folder1bak. If folder1bak exist, I will do nothing. Want to create folder1bak and then copy all the files from folder1 to folder1bak.
>
>Thanks - Brenda
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform