Groups | Blog | Home
all groups > vb.net > march 2004 >

vb.net : What is the equivalent to writing to the server?


Trint Smith
3/1/2004 10:52:09 PM
Ok, I know this is for local:
Dim sw As StreamWriter
sw = New StreamWriter("D:\files\text.txt", True)
What can I use to do the same write to the same directory, except on the
server please?
Thanks,
Trint

.Net programmer
trintsmith@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Trint Smith
3/2/2004 7:41:59 AM
Want to write it on the server...currently I'm writing it on my local
computer.

.Net programmer
trintsmith@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Jan Tielens
3/2/2004 8:02:41 AM
Sure,make sure you've shared a directory on the server and you have
sufficient rights to write on that share/directory:

sw = New StreamWriter("\\ServerName\ShareName\text.txt", True)


--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

"Trint Smith" <trintsmith@hotmail.com> schreef in bericht
news:OSMCjLCAEHA.2804@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Trint Smith
3/2/2004 8:14:24 AM
I just tested this and it does work on the server:
sw = New StreamWriter("\\ServerName\ShareName\text.txt", True)
This writes to the local computer:
sw = New StreamWriter("d:\files\text.txt", True)

Thanks,
Trint

.Net programmer
trintsmith@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
hirf-spam-me-here NO[at]SPAM gmx.at
3/2/2004 9:18:21 AM
* Trint Smith <trintsmith@hotmail.com> scripsit:
[quoted text, click to view]

How do you have access to the "server"?

--
Herfried K. Wagner [MVP]
Cor
3/2/2004 4:25:35 PM
Hi Trint,

Do you mean with "except on the server" that you want to write it on the
client computer?

Cor

[quoted text, click to view]

Cor
3/2/2004 4:48:34 PM
Hi Trint,

But I asume you are witing with a webpage as usual, so why would this not
work on the server?

Cor

[quoted text, click to view]

AddThis Social Bookmark Button