Sign in to follow this  
Followers 0
PsychOfMSE

Use a variable in RunWait command line argument

1 post in this topic

#1 ·  Posted (edited)

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?

Thanks!

*EDIT*

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  
Followers 0