I'm trying to pass the working directory to vbscript as a named argument. The system normally expands "." to the current path, but when I check the named argument I just get the string "."
Here's the command line:
cscript myscript.vbs /a:"first arg" /b:second /c:.
Here's the script:
dim args : set args = wscript.arguments.named
wscript.echo args.item("a")
wscript.echo args.item("b")
wscript.echo args.item("c")
Here's the output:
first arg
second
.