Notes

Working notes on Notes: Get Current Dir, Named Parameter, if WScript.Arguments.Named.Exists(\"a\") then, and and used thus.

UjnotesCC0 1.0

Working notes on Notes: Get Current Dir, Named Parameter, if WScript.Arguments.Named.Exists(\"a\") then, and and used thus.

Working notes on Notes: Get Current Dir, Named Parameter, if WScript.Arguments.Named.Exists("a") then, and and used thus.

Get Current Dir

SCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".").

Additional Quotes in passed parameter.

All quotes are removed by VB.

Named Parameter

Dim arg.

if WScript.Arguments.Named.Exists("a") then

Arg = WScript.Arguments.Named("a").

Arg = chr(34) & arg & chr(34).

End if.

and used thus

Cscript test.vbs /a:"a parameter".

Updated: 2026 Aug 19