Nova 0 Posted September 18, 2004 (edited) Im trying to write a script that will allow an admin to change the guest account password using an input box but Ive hit a snag and im sure its just something really simple Heres the bit of code im having trouble with $password = InputBox("Account password changer ", "Please enter a new password for guest account.", "", "*") RunWait(@ComSpec & " /c " & 'net user guest $password', "", @SW_HIDE) Why dose the password get set as $password and not the actually password stored in the varible by the input box? Edited September 18, 2004 by nova Share this post Link to post Share on other sites
ezzetabi 3 Posted September 18, 2004 (edited) Try $password = InputBox("Account password changer ", "Please enter a new password for guest account.", "", "*") RunWait(@ComSpec & " /c " & 'net user guest ' & $password, "", @SW_HIDE) Edited September 18, 2004 by ezzetabi Share this post Link to post Share on other sites
the_lord_mephy 0 Posted September 18, 2004 (edited) just curious as to what the difference between /k and /c is? Edited September 18, 2004 by the_lord_mephy My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites
Jos 2,165 Posted September 18, 2004 just curious as to what the difference between /k and /c is? <{POST_SNAPBACK}>/c closes the commandwindow after the program is completed.. which is what you want normally. /k keeps the commandwindow open after the program completes and gives you the possibility to see errors... great to use when debugging... ofcourse you need to remove the @SW_HIDE... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
ezzetabi 3 Posted September 18, 2004 But with the newest Autoit3 Scite you can see the console windows output directly in the Scite console. So /k is no more Share this post Link to post Share on other sites
the_lord_mephy 0 Posted September 18, 2004 Scite owns lol My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Share this post Link to post Share on other sites
Jos 2,165 Posted September 18, 2004 But with the newest Autoit3 Scite you can see the console windows output directly in the Scite console. So /k is no more <{POST_SNAPBACK}>True... but there are still lots of people not converted to the TRUE development platform called SciTe ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites