Re: choice wscript or cscript in .vbs
- From: "Todd Vargo" <tlvargo@xxxxxxxxxxxxxx>
- Date: Wed, 14 May 2008 22:26:14 -0400
zloup wrote:
Pegasus (MVP) wrote:
zloup wrote:
Hello
How to choice wscript or cscript in a .vbs.
i want cscript when i go a script on an unknow PC, when
i don't know the script for default
Precede the script name with "cscript.exe":
cscript //nologo zloup.vbs
but j want clic on the script !!! and not tape
Set WshShell = CreateObject("WScript.Shell")
If InStr(Ucase(WScript.FullName), "WSCRIPT.EXE") Then
'Restart using CSCRIPT.EXE
WshShell.Run "CSCRIPT.EXE //nologo " & _
Chr(34) & Wscript.ScriptFullName & Chr(34)
Wscript.Quit
End If
Wscript.Echo "Host is " & WScript.FullName
WshShell.Popup "Script will close in 5 seconds.",5,"Done"
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
.
- References:
- choice wscript or cscript in .vbs
- From: zloup
- Re: choice wscript or cscript in .vbs
- From: Pegasus \(MVP\)
- Re: choice wscript or cscript in .vbs
- From: zloup
- choice wscript or cscript in .vbs
- Prev by Date: Re: choice wscript or cscript in .vbs
- Next by Date: Loop through folder and backup
- Previous by thread: Re: choice wscript or cscript in .vbs
- Next by thread: Re: choice wscript or cscript in .vbs
- Index(es):
Relevant Pages
|
Loading