Jump to content
Sign in to follow this  

Use a variable in RunWait command line argument

Recommended Posts


ShellExecuteWait("C:\Temp\TAGInstall\autologon.exe", $username & $domain & $password)

This line is simply passing 3 pre-defined variables into the Microsoft Autologon.exe program.  The problem I'm getting is that the program errors out and says "Usage: autologon <username> <domain> <password>".  This leads me to believe that the command line arguments aren't being formatted correctly for some reason.

Can anyone look at the line above and see why autoit wouldn't be passing the variables cleanly?



I've figured out the issue.  The following line works perfectly:

RunWait("C:\Temp\TAGInstall\autologon.exe" & " " & $username & " " & $domain & " " & $password)
Edited by PsychOfMSE

Share this post

Link to post
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
Sign in to follow this