Crash Posted November 23, 2009 Share Posted November 23, 2009 (edited) I have two scripts over here: one is main.au3 and the other is action.au3The main.exe (compiled) is to be running in the background and the action.exe will be executed by main.exe whenever the user choose an action that requires admin rights (there will be a #RequireAdmin in action.exe)Why: So that main.exe can be run by all users and when the user needed some "actions", they will have to enter admin passwords, Instead of needed to enter password when main.exe is run.So there will be several "actions" written in action.exe and only one will be executed.So, I think I will use parameters:ShellExecute("action.exe", 1)(with one as the parameter)The action.exe will then GET the parameter, which in this case is 1, and run action 1.If the parameter is 2, then it will run action 2 and so on.So my question is HOW I CAN MAKE action.exe READ THE PARAMETER?Or, is my idea possible to work? If not, why?Please help me!! Edited November 23, 2009 by Crash JPGRAR | Mouse Lock | My website | Thanks so much for your help! ❤️ Link to comment Share on other sites More sharing options...
dantay9 Posted November 23, 2009 Share Posted November 23, 2009 Look for $cmdline in the help file. The topic is "Running scripts". I think you will find everything you need there. 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