.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 15th, 2003, 11:42 PM
jl39775 jl39775 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 jl39775 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old May 16th, 2003, 12:23 AM
jl39775 jl39775 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 4 jl39775 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #3  
Old May 16th, 2003, 10:14 AM
Andrew Andrew is offline
dotNetBB Forums Developer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 265 Andrew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Andrew Send a message via AIM to Andrew Send a message via Yahoo to Andrew
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>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > How do I save a text file to another computer?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT