Re: Migrating an old .BAT file and need a bit of help



"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?


.



Relevant Pages

  • Re: running tcl shell interactive with source
    ... Make a bat file for each of the scripts you'd like preloaded ... when the user starts tclsh. ... I would like to run a tcl shell interactively, ... The reason for asking is that I've a number of scripts that are used ...
    (comp.lang.tcl)
  • Re: how secure logon scripts??
    ... or you could write your logon script in .VBS and use the command ... Neither of these are guaranteed to be secure but is much ... better than putting an admin password in a plain text .BAT file that must be ... > we use logon and logoff scripts for some tasks. ...
    (microsoft.public.win2000.security)
  • Re: run .ppt or .bat from CD based HTML page
    ... Can you use the command line from the bat file in your HTML page? ... > tryed to use a few scripts but i keep running in to IE's security settings. ... >> the packaged files together as they were packaged. ...
    (microsoft.public.powerpoint)
  • Re: Logon Scripts problem when it authenticate with bdc in 2000 mixed mode env
    ... I am using bat file in login scripts path .But if i remove the cable of my bdc scripts runs fine.I am using local dns & wins. ...
    (microsoft.public.win2000.active_directory)
  • Migrating an old .BAT file and need a bit of help
    ... While I'm not exactly new to writing scripts I can't claim to ... Under DOS in a .BAT file you could get the name of the ... (from vague very old memories) ... but when I tried using them is simple code samples it all ran ...
    (microsoft.public.scripting.wsh)