Re: How to communicate with a batch file
From: Fosco (fake_at_fake.invalid)
Date: 05/09/04
- Next message: sterling_at_fiac.net: "Re: HELP - SESSION VARIABLES"
- Previous message: McKirahan: "Re: HELP - SESSION VARIABLES"
- In reply to: Bob Altman: "Re: How to communicate with a batch file"
- Next in thread: Bob Altman: "Re: How to communicate with a batch file"
- Reply: Bob Altman: "Re: How to communicate with a batch file"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 09 May 2004 13:04:41 GMT
"Bob Altman"
Set oShell = WScript.CreateObject("WScript.Shell")
X =oShell.RegRead("HKLM\Software\Microsoft\"&_
"Windows\CurrentVersion\ProgramFilesDir")
'X is your stuff
' example :
Msgbox X
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.CreateTextFile("c:\test.bat", True)
f.WriteLine"Start "& X
-- Fosco http://www.allmyfaqs.com/faq.pl?How_to_post http://learn.to/edit_messages
- Next message: sterling_at_fiac.net: "Re: HELP - SESSION VARIABLES"
- Previous message: McKirahan: "Re: HELP - SESSION VARIABLES"
- In reply to: Bob Altman: "Re: How to communicate with a batch file"
- Next in thread: Bob Altman: "Re: How to communicate with a batch file"
- Reply: Bob Altman: "Re: How to communicate with a batch file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|