bucky002 Posted April 1, 2006 Posted April 1, 2006 (edited) Why won't this script run C:\Documents and Settings\Christian\Shared? WinWaitActive( "Shared", "C:\Documents and Settings\Christian\Shared" ) WinClose("Shared", "C:\Documents and Settings\Christian\Shared") $password = "" $fpassword = "X" $input = InputBox("Password", "Password", "", "*", 50,50,50,50) While 1 Sleep(1000) Wend GUICtrlRead($input) If $input = $password Then Run("C:\Documents and Settings\Christian\Shared", @SW_MAXIMIZE ) ElseIf $fpassword Then MsgBox(0, "Password", "Incorrect password") EndIf It does fine until I enter my password, then it doesnt run the folder. Why is this? I know the $password = "" needs a password I just took it out because it's my password. Edited April 1, 2006 by bucky002
GrungeRocker Posted April 1, 2006 Posted April 1, 2006 http://www.autoitscript.com/forum/index.ph...ic=22355&hl=TPTtake a look at it [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
greenmachine Posted April 1, 2006 Posted April 1, 2006 I'm pretty sure you don't actually RUN a folder... you can run explorer.exe and use the folder name as the parameter, or do: Run (@Comspec & " /c start 'C:\Documents and Settings\Christian\Shared'")
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