how can i auto browser the notepad by VBscript??

bigdogandrew
05-31-2005, 01:12 PM
hi, i have some question for ask.
if i use the VBscript to prompt the message, eg. Wscript.Echo "Hello"
Then it would browser the message box on the screen.
If i want to browser that message by notepad (mean: auto open the notepad file on the screen), how to do it??

ian_bamforth
06-01-2005, 10:32 AM
You can open notepad using
Shell("notepad.exe")

Could send the message one key at a time to notepad I suppose, using SendKeys? Not ideal though. The other way would be to write your message to a temporary file, then open notepad with an argument...
Shell("notepad.exe C:\Temp\out.txt")

Ian

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum