
Long Path Names give Runtime error 76 - Path not found
I am writing a script which will move files to a holding directory while
keeping the same base path intact. I have run into a quirk where the script
will work correctly on 80% of the files and on the other 20% I get a
run-time error 76 (path not found) when I attempt to move the file.
I am using the FSO.Move method and the target is usually a long path/file
name when I encounter this error. In addition, the destination directory has
already been created before the Move is initiated.
Does anyone know of any issue regarding long path/filenames being passed to
the FSO methods via a variable?
Here is a sample from the script:
'Note: sFile is a FSO
destPath = HoldPath & Right(sFile.Path, len(sFile.Path)-2)
sFile.Move destPath
Thanks for the Help
- Eric