Re: How do I pass parameters in a WSH file?
- From: "Michael Harris \(MVP\)" <mikhar at mvps dot org>
- Date: Sat, 25 Jun 2005 13:16:56 -0700
bruce cartland wrote:
> ie. something like
>
> [ScriptFile]
> Path=.\sample.wsf /myarg:mystr
You can't since the syntax above isn't supported and there is no support for
any Args or Arguments variable in a WSH file.
> [Options]
> Timeout=0
> DisplayLogo=0
> BatchMode=0
Create an ordinary *.lnk where you can append script arguments...
If you want to be explicit about the host switches:
//T:0 is the same as TimeOut=0
//T:n is the same as TimeOut=n
//NoLogo is the same as DisplayLogo=0
absence of //NoLogo is the same as DisplayLogo=1
//I is the same BatchMode=0
//B is the same BatchMode=1
--
Michael Harris
Microsoft MVP Scripting
.
- Follow-Ups:
- Re: How do I pass parameters in a WSH file?
- From: bruce cartland
- Re: How do I pass parameters in a WSH file?
- References:
- How do I pass parameters in a WSH file?
- From: bruce cartland
- How do I pass parameters in a WSH file?
- Prev by Date: Re: Writing to the Environment ?
- Next by Date: Re: Accessing WScript.Arguments.Named duplicate arguments
- Previous by thread: Re: How do I pass parameters in a WSH file?
- Next by thread: Re: How do I pass parameters in a WSH file?
- Index(es):
Relevant Pages
|
Loading