Click here to Skip to main content
16,005,236 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Form load Pin
Edbert P19-Oct-06 20:28
Edbert P19-Oct-06 20:28 
GeneralRe: Form load Pin
pjackson1819-Oct-06 21:05
pjackson1819-Oct-06 21:05 
GeneralRe: Form load Pin
Christian Graus20-Oct-06 0:41
protectorChristian Graus20-Oct-06 0:41 
AnswerRe: Form load Pin
DontTouchMe19-Oct-06 20:39
DontTouchMe19-Oct-06 20:39 
GeneralRe: Form load Pin
pjackson1819-Oct-06 21:04
pjackson1819-Oct-06 21:04 
GeneralRe: Form load Pin
Christian Graus20-Oct-06 0:42
protectorChristian Graus20-Oct-06 0:42 
AnswerRe: Form load Pin
msleem20-Oct-06 13:19
msleem20-Oct-06 13:19 
QuestionRead/Write Text file from Remote Server Pin
Ram Murugan19-Oct-06 18:38
Ram Murugan19-Oct-06 18:38 
Hello

I am working with VB.Net, I want to read/write text data in remote server which is running on the same LAN.

I used the following code which gives an error

Imports System.IO
Imports System.IO.StreamReader

Dim path As String = "\\Server Name\Data\BarCode.txt"

Dim DirPath As String = "\\Server Name\Data"
Dim sw As StreamWriter
Dim di As DirectoryInfo

If Directory.Exists(DirPath) = False Then
di = Directory.CreateDirectory(“Data”)
End If
If File.Exists(path) = False Then
sw = File.CreateText(path)
sw.WriteLine("This is Test ")
sw.Flush()
sw.Close()
End if

How to make it working format?

Thanks
Muru
AnswerRe: Read/Write Text file from Remote Server Pin
Dave Kreskowiak20-Oct-06 8:30
mveDave Kreskowiak20-Oct-06 8:30 
GeneralRe: Read/Write Text file from Remote Server Pin
Ram Murugan21-Oct-06 3:32
Ram Murugan21-Oct-06 3:32 
GeneralRe: Read/Write Text file from Remote Server Pin
Dave Kreskowiak21-Oct-06 3:52
mveDave Kreskowiak21-Oct-06 3:52 
GeneralRe: Read/Write Text file from Remote Server Pin
Ram Murugan23-Oct-06 0:02
Ram Murugan23-Oct-06 0:02 
GeneralRe: Read/Write Text file from Remote Server Pin
Dave Kreskowiak23-Oct-06 2:55
mveDave Kreskowiak23-Oct-06 2:55 
Questionprevent multiple forms from opening Pin
steve_rm19-Oct-06 18:17
steve_rm19-Oct-06 18:17 
AnswerRe: prevent multiple forms from opening Pin
steve_rm20-Oct-06 0:34
steve_rm20-Oct-06 0:34 
Questionvb.net 2005 Scheduler Pin
Subjugate19-Oct-06 17:06
Subjugate19-Oct-06 17:06 
QuestionVisual Studio 2005 Windows Installer Custom Actions Pin
Computer_Guy19-Oct-06 16:35
Computer_Guy19-Oct-06 16:35 
AnswerRe: Visual Studio 2005 Windows Installer Custom Actions Pin
Kschuler20-Oct-06 5:40
Kschuler20-Oct-06 5:40 
QuestionDatabase Queries, Etc. Pin
j5matt19-Oct-06 10:26
j5matt19-Oct-06 10:26 
AnswerRe: Database Queries, Etc. Pin
Christian Graus19-Oct-06 10:42
protectorChristian Graus19-Oct-06 10:42 
GeneralRe: Database Queries, Etc. Pin
Colin Angus Mackay19-Oct-06 13:53
Colin Angus Mackay19-Oct-06 13:53 
GeneralRe: Database Queries, Etc. Pin
Christian Graus19-Oct-06 14:33
protectorChristian Graus19-Oct-06 14:33 
QuestionImplicit conversion from System.ValueType with FileGet Pin
Dick Bellnier19-Oct-06 5:03
Dick Bellnier19-Oct-06 5:03 
QuestionMicrosoft Flexgrid Pin
viji]18-Oct-06 21:25
viji]18-Oct-06 21:25 
AnswerRe: Microsoft Flexgrid Pin
nlarson1119-Oct-06 4:29
nlarson1119-Oct-06 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.