fingers
Programmer
- Nov 17, 2000
- 17
I want to provide code to copy an mdb database from a floppy to the HD. A snippet of my code is:
data1.database.close
source="a:\abc.mdb"
destination= curdir + "\abc.mdb"
filecopy source, destination
The filecopy chokes and returns error 70 (permission denied).
I have not given any permissions when creating the database - just used the Visual Data Manager to create the db/recordsets etc.
The funny part about this is that I have another application that I've had running since June which uses the exact same code and have never had problem copying the file on a daily basis!
Incidentally, there is nothing wrong with the database, or the from/to folders. I can copy the file with no problem from MSDOS.
Anyone have any ideas? What has this dummy missed?
Thanks,
Fingers
data1.database.close
source="a:\abc.mdb"
destination= curdir + "\abc.mdb"
filecopy source, destination
The filecopy chokes and returns error 70 (permission denied).
I have not given any permissions when creating the database - just used the Visual Data Manager to create the db/recordsets etc.
The funny part about this is that I have another application that I've had running since June which uses the exact same code and have never had problem copying the file on a daily basis!
Incidentally, there is nothing wrong with the database, or the from/to folders. I can copy the file with no problem from MSDOS.
Anyone have any ideas? What has this dummy missed?
Thanks,
Fingers