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

Visual Basic

 
AnswerRe: in my vb.net application i need to open ms word file Pin
Trollslayer18-Sep-06 22:36
mentorTrollslayer18-Sep-06 22:36 
JokeRe: in my vb.net application i need to open ms word file Pin
Ashley van Gerven18-Sep-06 23:06
Ashley van Gerven18-Sep-06 23:06 
GeneralRe: in my vb.net application i need to open ms word file Pin
_AK_18-Sep-06 23:54
_AK_18-Sep-06 23:54 
QuestionUSB and driveletter Pin
tessers18-Sep-06 21:56
tessers18-Sep-06 21:56 
Questionread a text file Pin
totokodok18-Sep-06 21:39
totokodok18-Sep-06 21:39 
AnswerRe: read a text file Pin
Kschuler19-Sep-06 10:35
Kschuler19-Sep-06 10:35 
Questionexporting value. Pin
waqar_mohmand18-Sep-06 20:41
waqar_mohmand18-Sep-06 20:41 
Generalexporting value. [modified] Pin
waqar_mohmand18-Sep-06 20:27
waqar_mohmand18-Sep-06 20:27 
hello,
the code that u have written i.e given below
Dim objNet
On Error Resume Next

'In case we fail to create object then display our custom error

Set objNet = CreateObject("WScript.NetWork")
If Err.Number <> 0 Then 'If error occured then display notice
MsgBox "Don't be Shy." & vbCRLF &_
"Do not press ""No"" If your browser warns you."
Document.Location = "UserInfo.html"
'Place the Name of the document.
'It will display again
End if

Dim strInfo
strInfo = "User Name is " & objNet.UserName & vbCRLF & _
"Computer Name is " & objNet.ComputerName & vbCRLF & _
"Domain Name is " & objNet.UserDomain
MsgBox strInfo

Set objNet = Nothing 'Destroy the Object to free the Memory




I want to know that whether we can export the value of variable "strInfo" into a text file after it get the username,domain etc etc.
if it is possible then plz tell me or show me the script to do that.


thanks
Confused | :confused:


-- modified at 5:18 Tuesday 19th September, 2006

waqar ajmal mohmand

GeneralRe: exporting value. Pin
_AK_18-Sep-06 20:38
_AK_18-Sep-06 20:38 
GeneralRe: exporting value. Pin
Eytukan18-Sep-06 20:42
Eytukan18-Sep-06 20:42 
GeneralRe: exporting value. Pin
_AK_18-Sep-06 20:46
_AK_18-Sep-06 20:46 
GeneralRe: exporting value. Pin
Anton Afanasyev18-Sep-06 21:43
Anton Afanasyev18-Sep-06 21:43 
GeneralRe: exporting value. Pin
V.18-Sep-06 20:39
professionalV.18-Sep-06 20:39 
GeneralRe: exporting value. Pin
Weiye Chen18-Sep-06 20:42
Weiye Chen18-Sep-06 20:42 
QuestionRe: exporting value. Pin
Eytukan18-Sep-06 20:55
Eytukan18-Sep-06 20:55 
AnswerRe: exporting value. Pin
Weiye Chen18-Sep-06 21:21
Weiye Chen18-Sep-06 21:21 
GeneralRe: exporting value. Pin
Eytukan18-Sep-06 21:28
Eytukan18-Sep-06 21:28 
GeneralRe: exporting value. Pin
Joan M18-Sep-06 20:59
professionalJoan M18-Sep-06 20:59 
GeneralRe: exporting value. Pin
Dario Solera18-Sep-06 21:06
Dario Solera18-Sep-06 21:06 
GeneralRe: exporting value. Pin
WillemM18-Sep-06 22:19
WillemM18-Sep-06 22:19 
GeneralRe: exporting value. Pin
R. Giskard Reventlov18-Sep-06 21:15
R. Giskard Reventlov18-Sep-06 21:15 
GeneralRe: exporting value. Pin
S Douglas18-Sep-06 21:20
professionalS Douglas18-Sep-06 21:20 
GeneralRe: exporting value. Pin
Jörgen Sigvardsson18-Sep-06 21:32
Jörgen Sigvardsson18-Sep-06 21:32 
GeneralRe: exporting value. Pin
_AK_18-Sep-06 21:37
_AK_18-Sep-06 21:37 
GeneralRe: exporting value. Pin
S Douglas18-Sep-06 21:51
professionalS Douglas18-Sep-06 21:51 

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.