Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Go Beavs!!!
Posted

physical drives don't work either. I get the following error with the following code

 

code:

File.Move("P:\1.txt", "P:\2.txt")

 

Error

System.IO.FileNotFoundException: Could not find file "P:\1.txt".File name: "P:\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 41

Go Beavs!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...