rikho Posted August 27, 2009 Share Posted August 27, 2009 Hello, i want to run a program i've made with a command line parameter but i don't know wich function use to do it my program allow you to "unlock or reset password" for user domain account on different domain. I get : run.exe and Ad_unlocker.exe run.exe (it ask you : user, password, domain) then it runas Ad_unlocker.exe with Ad_unlocker.exe ask to confirm the domain at start i want to make it more easy to use, i want to launch run.exe with domain argument ex : run.exe -domain NTDOM but how Ad_unlocker.exe can understand that ? is there a function to do this ? regards. Link to comment Share on other sites More sharing options...
MrChiliCheese Posted August 27, 2009 Share Posted August 27, 2009 The CmdlineParamter for a Script are stored in a variable called $CMDLineRaw Take a look at this: MsgBox(0,"",$CMDLineRaw) Link to comment Share on other sites More sharing options...
Mobius Posted August 27, 2009 Share Posted August 27, 2009 (edited) The CmdlineParamter for a Script are stored in a variable called $CMDLineRaw Take a look at this: MsgBox(0,"",$CMDLineRaw) $CmdlineRaw ; = The full commandline string. $Cmdline[n] ; = A particular commandline arguement, where [n] is the arg number $Cmdline[0] ; = The total number of commandline arguements. Edited August 27, 2009 by Mobius Link to comment Share on other sites More sharing options...
rikho Posted August 27, 2009 Author Share Posted August 27, 2009 $CmdlineRaw ; = The full commandline string. $Cmdline[n] ; = A particular commandline arguement, where [n] is the arg number $Cmdline[0] ; = The total number of commandline arguements. Thx to all ^^ 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