Sign in to follow this  
Followers 0
adored

Parameters for my program

4 posts in this topic

Hey,

id like to know how i make parameters for my program like this

"myprogram.exe" -title Test -msg Hey

Woud start somting like this

MsgBox (0, $title, $msg)

Great thnx, adored :D

Share this post


Link to post
Share on other sites



See the help file under "Command Line Parameters"


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Not the best, but does show the basic operation of handling Command Line Parameters

If $CMDLINE[0] = 4 Then
    If $CMDLINE[1] = '-title' Then
        $title = $CMDLINE[2]
        If $CMDLINE[3] = '-msg' Then
            $msg = $CMDLINE[4]
            MsgBox (0, $title, $msg)
        EndIf
    EndIf
EndIf

:D

Share this post


Link to post
Share on other sites

:D Thnx !

Adored :D

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