Using ASPExec to transfer to a mapped drive
Posted on 2003-11-20
I am using ASPExec to copy files amoung my web servers drives.
However, I have a need to copy the files to a mapped drive location, but nothing seems to work.
H:\ in this example is a mapped drive.
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd /c copy E:\temp\*.* H:\"
Executor.Parameters = ""
strResult = Executor.ExecuteDosApp
Response.Write "<pre>" & strResult & "</pre>"
It works great with the local drives.. just doesn't work with any mapped drive.
How can I make it work with a mapped drive?