daslick Posted October 5, 2006 Posted October 5, 2006 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.
Helge Posted October 5, 2006 Posted October 5, 2006 Well, you started nicely by using an ampersand correctly so why did you stop to do so? If $input_p1 = $input_p2 Then _ra("net user " & $input_ad & $input_p1 & " /add")
daslick Posted October 5, 2006 Author Posted October 5, 2006 O! I see.... cause I didn't know . 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!
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