Sign in to follow this  
Followers 0
bucky002

Why Won't It Run C:\shared?

3 posts in this topic

#1 ·  Posted (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 by bucky002

Share this post


Link to post
Share on other sites



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'")

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