Can I pass arguments to executables?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
hpkhpk
Newbie
Posts: 3
Joined: Tue Sep 12, 2006 8:00 pm

Can I pass arguments to executables?

Post by hpkhpk » Tue Sep 12, 2006 8:17 pm

I currently invoke my macro with arguments, for example:

C:\Program Files\MJT Net Ltd\Macro Scheduler\msched.exe\" mymacro /login=mylogin /password=mypassword

If I compile mymacro with the script compiler, will I be able to pass the two arguments to the compiled macro? If so, is the syntax the same? For example:

mymacro.exe /login=mylogin /password=mypassword

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Sep 12, 2006 8:49 pm

If I compile mymacro with the script compiler, will I be able to pass the two arguments to the compiled macro?
Yes.
is the syntax the same?
Yes.

Try it. If you have problems, get back with us.

Later,
Dick

OlgaFB
Pro Scripter
Posts: 58
Joined: Mon Nov 01, 2004 3:04 pm
Contact:

Post by OlgaFB » Mon Oct 09, 2006 6:39 pm

You can also parse whichever parameters are passed to it as to a regular exe. I have some functions written especially for it. Please reply to this topic if you need them.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts