Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backing up
Message
From
07/02/2002 06:04:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00616350
Message ID:
00616482
Views:
35
>>Dear everyone
>>How can you make a backup copies of your foxpro program folder during run time when you issue eg., copy file C:\fox\*.* to d:\mycopy\*.* without creating an error "file is in use". I laready tried the "close all" command but it did not work. Thanks
>
>You might try using the Win32 API call SHFileOperation() to perform the copy - it allows for wildcarding, copying of shared files and continuing to copy in the face of copy errors. It's documented in the Win32 API section.

Ed,

Does it also allow to copy an entire folder - with all subfolders?

Actually, I am looking for any relatively simple sample to compare API and WSH, for a programming course I am giving.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform