|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I save a text file to another computer?
In the past, I've saved files to directories that reside on the same machine as the web server. What I want to do today is save files on someone elses machine. I used the following code to save to a directory on the same machine as the web server. <br><br> . <br> . <br> . <br>uploadedFile.PostedFile.SaveAs("c:inetpubwwwrootWylePricingSystemMonthlyArchive"" + myFileName) <br> . <br> . <br> . <br>I've tried this, to save to a folder on another computer. This folder has all the correct permissions. <br> <br> . <br> . <br> . <br>uploadedFile.PostedFile.SaveAs("\computerName est"" + myFileName) <br> . <br> . <br> . <br>Does anyone know if and how I can save files to another computer on the network. <br><br>Thanks, <br><br>James
|
|
#2
|
|||
|
|||
|
Here's a better explanation.<br><br>I'm using asp.net w/Visual Basic. <br><br>The uploadedFile is a input tag with a type="file". When I submit the selected file, I want to save it to another user's computer instead of a folder on the web server. <br><br>James
|
|
#3
|
|||
|
|||
|
You have to use a UNC for the path, and the account that the ASP.NET process is set to run in has to have permission to write to that share.<p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > How do I save a text file to another computer? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|