Sign in to follow this  
Followers 0
daslick

Simple Syntax Problem

3 posts in this topic

I am trying to make a script to make a new user.

$input_ad = new administrator's name

$input_p1 = new password

$input_p2 = confirmed new password

if $input_p1 = $input_p2 then _ra("net user "& $input_ad $input_p1 " /add")

Error in expression.:

I'm sure its a really simple problem. I'm just new to autoit.

Share this post


Link to post
Share on other sites



Well, you started nicely by using an ampersand correctly so why did you stop to do so? :lmao:

If $input_p1 = $input_p2 Then _ra("net user " & $input_ad & $input_p1 & " /add")

Share this post


Link to post
Share on other sites

O! I see.... cause I didn't know :lmao: . thanks. I'll remember that now. - by the way I had to change it to

If $input_p1 = $input_p2 Then _ra("net user " & $input_ad & " " & $input_p1 & " /add")

Thanks!

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