Re: novice needs help
- From: "Shawn" <shawn.phelps@xxxxxxxxxx>
- Date: 7 Feb 2007 22:01:16 -0800
On Feb 7, 10:51 pm, "n6trf" <n...@xxxxxxxx> wrote:
I am trying to execute a script in logoff. Should I make your suggestion in
a file with the .wsf extension and/or are there other statements that are
required around your suggestion? TIA
"Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:eAnC0HySHHA.2228@xxxxxxxxxxxxxxxxxxxxxxx
Replied to [n6trf]s message :
I need a script to:
aprogram.exe withparameters
Spent considerable time looking @ 'windows script host ... ' but was
unable to download windows script host samples as the help suggested.
Because it didn't exist. Need a start. TIA
set ws = CreateObject("WScript.Shell")
ws.Run "aprogram.exe withparameters"
Example :
set ws = CreateObject("WScript.Shell")
ws.Run "notepad.exe \Windows\Log.log"
Good Luck, Ayush.
--
Scripting Home :http://snipurl.com/Scripting_Home
You should save it as .VBS
.
- Follow-Ups:
- Re: novice needs help
- From: n6trf
- Re: novice needs help
- References:
- novice needs help
- From: n6trf
- Re: novice needs help
- From: Ayush
- Re: novice needs help
- From: n6trf
- novice needs help
- Prev by Date: Re: novice needs help
- Next by Date: Is it possible to launch application from remote DOS box?
- Previous by thread: Re: novice needs help
- Next by thread: Re: novice needs help
- Index(es):
Relevant Pages
|