daslick Posted October 5, 2006 Share 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. Link to comment Share on other sites More sharing options...
Helge Posted October 5, 2006 Share 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") Link to comment Share on other sites More sharing options...
daslick Posted October 5, 2006 Author Share 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! Link to comment Share on other sites More sharing options...
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