0x90h Posted February 27, 2008 Share Posted February 27, 2008 hi guys! i feel no need to introduce myself as i am noone special so let me just ask my question, hehe ;P how to make my script run only if user use correct lpParam for script execute, eg. myScript.exe -cAP3#ap also my question is how to check for any param typed by user. thanks in advance ;P Link to comment Share on other sites More sharing options...
weaponx Posted February 27, 2008 Share Posted February 27, 2008 If $CmdLine[0] AND $CmdLine[1] = "-cAP3#ap" Then ;Do nothing Else Exit EndIf -or- If NOT $CmdLine[0] OR $CmdLine[1] <> "-cAP3#ap" Then Exit 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