Hi everyone,
I need help with the following problem:
I have a Visual Basic application where some of my users are getting a "Permission Denied" error message when trying to copy files from one network drive to another.
Here it is part of my code:
Set fso = CreateObject("Scripting.FileSystemObject")
sourceFile = "K:\UserData\Smith\test1.txt"
destFile = "X:\NetData\EPI\test1.txt"
fso.CopyFile sourceFile, destFile, true
Set fso = Nothing
I believe it has to do with accessing a remote server by impersonating the user logged on to the client machine. Does anybody have any ideas on how to resolve this problem?
Thanks,
TM