Jump to content
Sign in to follow this  
adam162

using $cmdline['']

Recommended Posts

adam162

par.au3

$adam = "work"
Run("par2.au3 " & $adam)
EXIT

par2.au3

IF $cmdline[0] = 1  THEN
$adam = $cmdline[1]
MsgBox( 0, "", $adam)
Else
    msgBox( 0, "", "Nothing to show")
    Endif
    EXIT

Now when I run "par.au3" nothing (No mesBox , But when I run par2 "par2.au3 work"

It comes up with a message box with "work" whats wrong with "par.au3" ?

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  

×