i am trying to create a file backup program. i am using FileCopy to do this
VB Code:
FileCopy origFile, copyfile
when i try this i get error 75
could this be caused by being a limited user or not. if it only runs on administrator is there a way round this problem
Also is there a way to set a Folder box to not show hidden folders on the drive. this is because i think when i was testing this may have caused some problems.
thanks
'Rarely is the question asked: Is our children learning?' George Bush
I have no idea on how your permissions were set up... I repeat do you have access to the files? If you don't have access to the files you cannot do anything to them.
well i have tried the code on a admin account and it still dosent work. this is my full code
VB Code:
origPath = Dir1.Path
origFile = File1.FileName
copyPath = Dir2.Path
Print origPath
origBack = origPath + "\" + origFile
FileCopy origBack, copyPath
End Sub
could this be the problem. i am not sure why permissions should be a problem because i can copy files in windows using the menus so i dont think any are protected
'Rarely is the question asked: Is our children learning?' George Bush
You took a trailing "\" off the source file. Forgot to mention it before, because it didn't show up in the screenie. Next time, just use debug.print to identify values.