Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to COPY files in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583804
Message ID:
00583852
Views:
31
>HI.
>
>I am trying to copy files within VFP and cant find a suitable command:
>I want to do something like:
> Copy C:\MyFolder\*.zip to C:\MyFOlder\MyArea
>
>The Copy To command seems to only allow copy of an open Table
>The COPY file command seems to just make a copy in the curent folder
>

You have to give the FILE clause as well as the complete template for the copy. Try:
Copy <b>FILE</b> C:\MyFolder\*.zip to C:\MyFOlder\MyArea<b>\*.zip</b>
>Regards,
>
>Gerard
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
Reply
Map
View

Click here to load this message in the networking platform