PDA

Click to See Complete Forum and Search --> : filecopy runtime error '75'


april
Jan 23rd, 2000, 02:29 PM
please help. i just want to copy one file from path a to path b but i'm getting this error:
filecopy runtime error
path/file access error
this comes up after(?) the filecopy command is executed. funny thing though, because the file is copied to path b. here's the code:

IMPS_DIR1 = "E:SMART\INCOMING\BLINK\IMPS.DAT"
IMPS_DIR2 = "F:\POLLING\INBOX\IMPS.DAT"
.
.
.
MsgBox "IMPS_DIR1: " + IMPS_DIR1 + Chr(13) +_
"IMPS_DIR2: " + IMPS_DIR2
FileCopy IMPS_DIR1, IMPS_DIR2
MsgBox "IMPS file " + IMPS_filename + " was transferred successfully.", , "IMPS file"

i don't get any errors when i change the paths to my c: drive.

HELP!!

DiGiTaIErRoR
Jan 23rd, 2000, 05:03 PM
change:
IMPS_DIR1 = "E:SMART\INCOMING\BLINK\IMPS.DAT"
IMPS_DIR2 = "F:\POLLING\INBOX\IMPS.DAT"
to:
IMPS_DIR1 = "E:\SMART\INCOMING\BLINK\IMPS.DAT"
IMPS_DIR2 = "F:\POLLING\INBOX\IMPS.DAT"

you forgot the \ after E:
simple enough


------------------
DiGiTaIErRoR

april
Jan 26th, 2000, 02:30 PM
Thanks but I've actually coded it correctly in my program with a '\' after the E: I just missed it when I typed it in here.

Any more ideas?

Frans C
Jan 27th, 2000, 01:04 AM
There are some possibilities.

- You don't have the network rights to copy the file to that location.
- The destination file already exists, and is marked read-only.
- The destination file already exists, and is currently in use.

april
Jan 27th, 2000, 07:57 AM
definitely no access issues here because the program copies the file. the file does exist in the destination drive and it gets overwritten each time but if this is the problem how do i get rid of the error message?