eeglave Posted October 12, 2012 Posted October 12, 2012 Hello all. THanks for all the Help. I have a question about how to add in a varible when I am trying to run mutiple cmd's in one open window. I found a way to run a few lines in the same window But I can't fiqure out how to add a command with a varible. In the following how would I add say "Ping " $Current IP and make it work? CMD = 'Echo 1 && ' & _ 'Echo 2 && ' & _ 'Echo 3 && ' & _ 'Echo 4 && ' & _ 'ipconfig /all' RunWait('"' & @ComSpec & '" /k ' & $CMD, @SystemDir)
Chance Posted October 19, 2012 Posted October 19, 2012 Those aren't really a few lines, it's still a single line statement with multiple commands.It's better to just have your script write a batch file and execute it using the run command.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now