I open a file system object and After I write a file, I want to copy it to another folder located on a different server.
If I just make a copy of it in the same folder, the following works:
Code:
objFSO.CopyFile strWritePath & "default.asp", strWritePath & "default_test.asp"
however, when I try to copy it to another server, I get an error. Here is that code:
Code:
objFSO.CopyFile strWritePath & "default.asp", "\\Admvbprogram206\Temp\X_testTimeTon.asp"
The error says:
Code:
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
We have IIS 5.0 running with anonymous access turned off. Since I am an administrator and I have specific privledges on the folder I am trying to copy this file to, I do not understand why I am getting the error. We are on a domain using active Directory.
Does anyone know why I would be getting a permissions error when I obviously have permissions? The IIS server is logged on as a domain admin as well.
Chris