-
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!!
-
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
-
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?
-
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.
-
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?