Jump to content

How to use variable with RunWait and COMSPEC ??


volkanos
 Share

Recommended Posts

How to use variable with RunWait and COMSPEC ??

Example (I know psexec request a password if I don't use -p passwd (It's for the example)):

$iPasswd = InputBox("Admin password", "", "", "*")

RunWait(@COMSPEC & ' /c psexec @NetworkScan.txt -u Administrateur -p $iPasswd -i -d -e cmd "/C net user etudiant $iPasswd"')

How to say that $iPasswd is a variable??

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...