I am having an interesting issue.
I have the following code:
'We've uploaded the picture - now copy it to the 123 directories across our servers
'Now copy the source to the other systems cache folders
On Error resume next
objNetwork.RemoveNetworkDrive "L:"
objNetwork.RemoveNetworkDrive "M:"
objNetwork.RemoveNetworkDrive "N:"
on error goto 0
objNetwork.MapNetworkDrive "L:", "\\WEBa1\123", false
objNetwork.MapNetworkDrive "M:", "\\WEBa2\123", false
objNetwork.MapNetworkDrive "N:", "\\WEBa3\123", false
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.CopyFile strFolder & FileName, "L:\" & FileName, true
filesys.CopyFile strFolder & FileName, "M:\" & FileName, true
filesys.CopyFile strFolder & FileName, "N:\" & FileName, true
filesys.deletefile strFolder & FileName, true
objNetwork.RemoveNetworkDrive "L:"
objNetwork.RemoveNetworkDrive "M:"
objNetwork.RemoveNetworkDrive "N:"
If I set our system IIS to AspExecuteInMTA = "1" - the above code fails
If I set our system IIS to AspExecuteInMTA = "0" - The above code works.
I need our system to run with AspExecuteInMTA = "1" as the perfomance benefits are huge. Anyone have suggestions or comments on how I could do the network copies successfully?
Kevin