Jump to content
Sign in to follow this  

Why Won't It Run C:\shared?

Recommended Posts


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
If $input = $password Then
    Run("C:\Documents and Settings\Christian\Shared", @SW_MAXIMIZE )
ElseIf $fpassword Then
    MsgBox(0, "Password", "Incorrect password")
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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.