FileSystemObject - Copying files to mapped network drive
Posted on 2004-09-30
I have an asp page that is meant to copy a file from one server to another (the servers are identical, with requests managed by a load-balancer), both run Windows Server 2003 with IIS 6.0. When a user uploads a file, I need a copy of the file to be placed on the other server straight away.
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "D:\folder\file.ext", "G:\folder\file.ext"
Set objFSO = Nothing
G: is a mapped network drive onto the other server, and the above code returns 'Path not found'. Anybody got any ideas? Any help much appreciated.