Re: Migrating an old .BAT file and need a bit of help
- From: "McKirahan" <News@xxxxxxxxxxxxx>
- Date: Tue, 13 Sep 2005 18:18:01 -0500
"David Schrader" <dfschrader@xxxxxxxxxxx> wrote in message
news:OwvwueLuFHA.3104@xxxxxxxxxxxxxxxxxxxxxxx
> While I'm not exactly new to writing scripts I can't claim to
> know everything there is to know. I've poked into the manual
> and thought I'd found the answer but everything I tried failed
> to work so I'm turning here in the hope someone here may
> have a clue.
>
> Under DOS in a .BAT file you could get the name of the
> batch file by referring to the *0* argument passed to the
> .BAT file so you could do something like:
> "You need to Call this procedure as follows:"
> #0#,File1,File2,etc.
> (from vague very old memories)
>
> However, since scripting arguments are *0* based that isn't
> possible. I found "Wscript.arguments.Caller" & "ditto.Callee"
> but when I tried using them is simple code samples it all ran
> right up to those lines and then apparently just skipped those
> lines.
>
> Any suggestions?
>
> David *Who is Deeply in the Dark*
>
>
Do you want the name of the script file within its execution?
WScript.ScriptName
Or are you asking about how to use the Arguments collection?
.
- Follow-Ups:
- Re: Migrating an old .BAT file and need a bit of help
- From: David Schrader
- Re: Migrating an old .BAT file and need a bit of help
- References:
- Migrating an old .BAT file and need a bit of help
- From: David Schrader
- Migrating an old .BAT file and need a bit of help
- Prev by Date: Migrating an old .BAT file and need a bit of help
- Next by Date: Re: Migrating an old .BAT file and need a bit of help
- Previous by thread: Migrating an old .BAT file and need a bit of help
- Next by thread: Re: Migrating an old .BAT file and need a bit of help
- Index(es):
Relevant Pages
|