Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The scripting.filesystemobject Class
Message
From
12/04/1999 16:33:16
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
The scripting.filesystemobject Class
Miscellaneous
Thread ID:
00207571
Message ID:
00207571
Views:
50
Hello,

I am trying to program a backup utility for an application. Everything works fine until the dbc files need to be copied. When the program gets to the instruction to copy the datbase files I get the following error:
OLE error Code 0x800a0046: Unknown COM status code.

The file does exist, and I think the database is closed. I don't know what else could be wrong. The code is below.

ofs.copyfile(alltrim(ThisForm.pgfrmbackup.Page2.txtrestorePath.value) + "configurator.dbc",lcdesfile,.t.)
ofs.copyfile(alltrim(ThisForm.pgfrmbackup.Page2.txtrestorePath.value) + "configurator.dct",lcdesfile,.t.)
ofs.copyfile(alltrim(ThisForm.pgfrmbackup.Page2.txtrestorePath.value) + "configurator.dcx",lcdesfile,.t.)

I have even tried using wild cards instead of the name.

Any ideas

Jim
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform