Sign in to follow this  
Followers 0
rikho

program with command line parameter

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



The CmdlineParamter for a Script are stored in a variable called

$CMDLineRaw

Take a look at this:

MsgBox(0,"",$CMDLineRaw)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Mobius

Share this post


Link to post
Share on other sites

$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 ^^

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