I want to give an option for backup in my vb6 application .The database file has to be copied to a pen drive. I am using windows XP. i give below my code
Dim sourcefile, destination file as string
sourcefile = App.Path &"\HHA.mdb"
Destinationfile = "TxtDrive.text" & "\HHA.mdb"
Filecopy Sourcefile,Destinationfile
******* The above code did not work . "Permission denied" message is displayed. Please help me
Here the App Path -> C:\My documents\HHA\HHA.mdb
Destination -> K:\HHA.mdb
Dim sourcefile, destination file as string
sourcefile = App.Path &"\HHA.mdb"
Destinationfile = "TxtDrive.text" & "\HHA.mdb"
Filecopy Sourcefile,Destinationfile
******* The above code did not work . "Permission denied" message is displayed. Please help me
Here the App Path -> C:\My documents\HHA\HHA.mdb
Destination -> K:\HHA.mdb