pghsteelers
Technical User
I am trying to use the Comspec command to issue a network command. But if I wanted to request input from the user and then use that input which is assigned to a variable in a command line, how do I do that.
For example, I read in input from the user to variable and put that in something like
var = something
objshell.Run "%comspec% /k c: & cd & c:\ & cls & cd c:\ & nbtstat -a (here is where I would like to place the variable".
I know with allot of functions we can adjoin them using the & such as:
objshell.Run "%comspec% /k c: & cd & c:\ & cls & cd c:\ & nbtstat -a" & var
but this doesn't work. Any ideas?
For example, I read in input from the user to variable and put that in something like
var = something
objshell.Run "%comspec% /k c: & cd & c:\ & cls & cd c:\ & nbtstat -a (here is where I would like to place the variable".
I know with allot of functions we can adjoin them using the & such as:
objshell.Run "%comspec% /k c: & cd & c:\ & cls & cd c:\ & nbtstat -a" & var
but this doesn't work. Any ideas?