Csaba Gabor wrote:

> This is not clear to me. %cmdcmdline% as such, as far as I know,
> exists only within cmd.exe. However, as far as I am aware, whenever
> any program is started off, it has an associated "command line" that
> caused it to be executed. Within a VB Project you can obtain it
> directly with Command$ and from c++ evidently with GetCommandLine().

I don't believe that cmd.exe will be involved at all for some ways that
you script could be started. i.e

wscript scriptname.vbs <some arguments> from start/run will just start
wscript.exe directly.

It sounds to me that you need to re-think what you are trying to achieve
here or perhaps explain a little more of your reasoning for wanting to
get at %cmdcmdline% - perhaps then someone can come up with an
alternative approach.

--
VS