Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE
Message
From
19/08/2001 23:28:47
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00544896
Message ID:
00546029
Views:
16
>>In DOS I can use COPY even if a file is open.
>>In VFP I get a message (file is in use) if I try to use COPY FILE. Is there a way to perform a silent copy even if the file is open?
>
>You can use FileToStr()/StrToFile() to copy it as long as the file isn't open exclusively by something.

Or use SHFileOperation() as documented in the Windows API section. CopyFile() will work, too.
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