kcwallace
Centurion
I neep to write a asp page that renames a specifc file on another server than the web server within our LAN. They are in different domains. I am using the following code and get the following error (the file nams are correct):
File.Move("\\Redstone\General\1.txt", "\\Redstone\General\2.txt")
error:
System.IO.FileNotFoundException: Could not find file "\\Redstone\General\1.txt".File name: "\\Redstone\General\1.txt" at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.File.Move(String sourceFileName, String destFileName) at ProReRelease.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\ProReRelease\default.aspx.vb:line 39.
File.Move("\\Redstone\General\1.txt", "\\Redstone\General\2.txt")
error:
System.IO.FileNotFoundException: Could not find file "\\Redstone\General\1.txt".File name: "\\Redstone\General\1.txt" at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.File.Move(String sourceFileName, String destFileName) at ProReRelease.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\ProReRelease\default.aspx.vb:line 39.