I need to transfer an entire folder from a computer onto a thumbdrive. I have the routine set up so you can select the drive the thumbdrive is in and I am using the command below but I keep getting the error 'Path/File access error'. Any ideas what is happening?
DBPath$ = <Drive selected>
SourceFile = "c:\program files\geomanager\Photos"
DestinationFile = DBPath$&"Photos"
FileCopy SourceFile, DestinationFile
I even added a routine to check if the directory was present on the thumbdrive and if it was not then it is created with the command:
MkDir DBPath$&"\Photos"
Thanks for any help you can give me. I've been writing in VB5 for a long time but never attempted this procedure.
DBPath$ = <Drive selected>
SourceFile = "c:\program files\geomanager\Photos"
DestinationFile = DBPath$&"Photos"
FileCopy SourceFile, DestinationFile
I even added a routine to check if the directory was present on the thumbdrive and if it was not then it is created with the command:
MkDir DBPath$&"\Photos"
Thanks for any help you can give me. I've been writing in VB5 for a long time but never attempted this procedure.