I know how in vbscript to access the command-line parameters. But can I get the name of the running script, similar to the %0 parameter in a batch file?
Consider the following:
param1 - 3 are easy. But can I get "myvbscript.vbs" inside of that script?
Even better, can I get access to the initiating command line in its entirety, so I can see cscript.exe and/or SomeExeWritingToStandardOut.Exe?
I thought perhaps there was an environment variable which listed the last executed command in that command window's context and there does not appear to be such a thing.
I read the titles of all the FAQs in this forum. I searched the internet and found a bazillion references to "parameters" but haven't figured out how to restrict my results to show me what I'm looking for.
[COLOR=#aa88aa black]Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.[/color]
Consider the following:
Code:
SomeExeWritingToStandardOut.exe | cscript.exe //Nologo myvbscript.vbs param1 param2 param3
Even better, can I get access to the initiating command line in its entirety, so I can see cscript.exe and/or SomeExeWritingToStandardOut.Exe?
I thought perhaps there was an environment variable which listed the last executed command in that command window's context and there does not appear to be such a thing.
I read the titles of all the FAQs in this forum. I searched the internet and found a bazillion references to "parameters" but haven't figured out how to restrict my results to show me what I'm looking for.
[COLOR=#aa88aa black]Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.[/color]