Jump to content

program with command line parameter


rikho
 Share

Recommended Posts

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

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

wtfpl-badge-1.png

Link to comment
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 ^^

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...