Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading bits in VB.net Pin
EliottA9-Sep-09 4:13
EliottA9-Sep-09 4:13 
GeneralRe: Reading bits in VB.net Pin
xx77abs9-Sep-09 4:17
xx77abs9-Sep-09 4:17 
QuestionGet username of a PC [SOLVED] Pin
vijay24829-Sep-09 3:37
vijay24829-Sep-09 3:37 
AnswerRe: Get username of a PC Pin
Nuri Ismail9-Sep-09 4:01
Nuri Ismail9-Sep-09 4:01 
GeneralRe: Get username of a PC Pin
vijay24829-Sep-09 4:17
vijay24829-Sep-09 4:17 
AnswerRe: Get username of a PC [About the second query] Pin
Nuri Ismail9-Sep-09 4:14
Nuri Ismail9-Sep-09 4:14 
GeneralRe: Get username of a PC [About the second query] Pin
vijay24829-Sep-09 4:20
vijay24829-Sep-09 4:20 
GeneralRe: Get username of a PC [About the second query] Pin
Nuri Ismail9-Sep-09 5:04
Nuri Ismail9-Sep-09 5:04 
vijay2482 wrote:
I want this file to be created only once, say the file is created in the server or admins system.
each time a user logs on, the logging needs to be appended on to that file.


In this case you can use the File.AppendText Method[^]. It will create a StreamWriter object for you. If the file specified by the path parameter does not exist, it will be created. If the file does exist, write operations to the StreamWriter will append text to the existing file. According to MSDN the path parameter of the File.AppendText method can be the path to the file on your server:

 'From MSDN
In members that accept a path, the path can refer to a file or just a directory. 
The specified path can also refer to a relative path or a Universal Naming Convention (UNC) 
path for a server and share name. For example, all the following are acceptable paths:

    * "c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.
    * "c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.
    * "MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.
    * "\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.


The above quote can be found here[^] and it applies to all of the members of File class.

I hope this helps you! Smile | :)

Best wishes,
Nuri Ismail
GeneralRe: Get username of a PC [About the second query] Pin
vijay24829-Sep-09 5:08
vijay24829-Sep-09 5:08 
QuestionBeginner Pin
PCS3059-Sep-09 3:08
PCS3059-Sep-09 3:08 
AnswerCheck out MSDN for learning VB development Pin
David Mujica9-Sep-09 3:16
David Mujica9-Sep-09 3:16 
AnswerRe: Beginner Pin
Steven J Jowett9-Sep-09 3:18
Steven J Jowett9-Sep-09 3:18 
GeneralRe: Beginner Pin
EliottA9-Sep-09 3:37
EliottA9-Sep-09 3:37 
GeneralRe: Beginner Pin
Steven J Jowett9-Sep-09 4:28
Steven J Jowett9-Sep-09 4:28 
GeneralRe: Beginner Pin
PCS30510-Sep-09 1:57
PCS30510-Sep-09 1:57 
Questionhow to create dynamic pie charts in vb.net Pin
vidhish8-Sep-09 21:37
vidhish8-Sep-09 21:37 
AnswerRe: how to create dynamic pie charts in vb.net Pin
Christian Graus8-Sep-09 22:26
protectorChristian Graus8-Sep-09 22:26 
AnswerRe: how to create dynamic pie charts in vb.net Pin
0x3c09-Sep-09 0:36
0x3c09-Sep-09 0:36 
Questionplz help me to join multiple table query.... Pin
roopali gupta8-Sep-09 20:33
roopali gupta8-Sep-09 20:33 
AnswerRe: plz help me to join multiple table query.... Pin
_Damian S_8-Sep-09 20:38
professional_Damian S_8-Sep-09 20:38 
GeneralRe: plz help me to join multiple table query.... Pin
roopali gupta8-Sep-09 21:48
roopali gupta8-Sep-09 21:48 
GeneralRe: plz help me to join multiple table query.... PinPopular
Christian Graus8-Sep-09 22:27
protectorChristian Graus8-Sep-09 22:27 
AnswerRe: plz help me to join multiple table query.... Pin
εїзεїзεїз9-Sep-09 2:05
εїзεїзεїз9-Sep-09 2:05 
Questionchange value of dropdown box Pin
dodg3r78-Sep-09 10:37
dodg3r78-Sep-09 10:37 
AnswerRe: change value of dropdown box Pin
Christian Graus8-Sep-09 11:40
protectorChristian Graus8-Sep-09 11:40 

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.