Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to backup a directory and files
Message
 
To
30/12/2007 14:42:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01278503
Message ID:
01278575
Views:
22
Take a look at Thread #793714 Message #793756
or
oShell    = CreateObject("Shell.Application")
objFolder = oShell.NameSpace("C:\backup\this-dir")
*** c:\backup\this-dir must exists!!!
objFolder.CopyHere("C:\this-dir\*.*")
check http://msdn2.microsoft.com/en-us/library/ms723207.aspx

>I would like to create a switch on a form
>that, when clicked, will perform the same
>task as the following DOS command:
>
> xcopy this-dir backup\this-dir /e /s
>
>Can someone shed a light? THank you.
>
>JW
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform