>>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)