Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying a Folder
Message
From
11/10/2002 13:05:28
 
 
To
11/10/2002 13:02:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00710410
Message ID:
00710426
Views:
14
>>Hi,
>>
>>I'm having trouble copying a directory from one drive to another. Anyone know the easiest way to do this? I am using VFP6. Thanks!
>
>You can use WSH, or you can just use XCOPY. Here's a cut-and-paste snippet from some of my code:
	lcCmd = [RUN ] + ;
>		[XCOPY "] + ADDBS(THIS.BackupDirectory) + [*.*" "] + ;
>		lcDirectory + [" ] + ;
>		[/E /V /C /I /Y ]
>	&lcCmd
HEATHEN! How can someone of your obvious wisditude fall back on XCOPY, which, BTW, has different switches on some operating systems...

I'm SO disappointed!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform