Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE problem
Message
From
09/04/2001 13:45:57
 
 
To
06/04/2001 01:31:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00492664
Message ID:
00493660
Views:
17
>Here's a stab in the dark, but if you have SET RESOURCE ON, the FOXUSER files will be active. A blind copy of all DBFs and FPTS will try to copy thse files and generate the error.
>

He might try doing a SET RESOURCE OFF, and then use the SHFileOperation() API call to make the copies.

>>As part of an archiving process I have a form that receives a destination directory and a time range
>>
>>I use mkdir() to create the desired directory tree, then COPY FILE ... to move the files
>>
>>copy .exe version, configs, ini
>>copy the dbc, dcx, dct
>>copy the dbf, cdx, fpt
>>
>>when I run the form from the form designer, it all works correctly, when I call it from the application menu the three database files will not copy and give me a file in use error. All of the other files copy correctly without complaint.
>>
>>I do not have anything in the data environment in the form, nothing is open in any datasession, no database is opened, nothing is used. I CLOSE ALL and so on. wait windows, watch windows, I cannot find anything. Nothing is open
>>
>>What am I missing??
>>
>>tia
>>
>>Al Allison
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