HowTo use commandline parameters with an MSched exe ...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply

bernie
Junior Coder
Posts: 47
Joined: Sun Sep 22, 2002 4:16 pm
Location: Virginia

Post by bernie » Fri Jun 18, 2004 4:10 pm

I "checked that" but I didn't see exactly how to do the command line parameters trick.. could you summarize?

I have to do things one level more tricky: I've used "writeln" to create a script file and I need to run:
PROGRAM arg arg arg arg <SCRIPTFILE
Is that possible? My best guess right now is to do it with an additional
file: create "DOIT.BAT", do a single writeln of teh above line to it, and then runcmd the DOIT.BAT file...
/Bernie\

Lumumba

Post by Lumumba » Fri Jun 18, 2004 8:04 pm

but I didn't see exactly how to do the command line parameters trick
I wanted to trigger a compiled MSched script (screenshot.exe) from within another NON-MSched script (the same way as you would execute it from a commandline, by using additional parameters). As MSched-executables seems not to work with standard parameters (%1 %2 ...) I had a try using a backdoor aka "the clipboard" :wink:

a) push the parameters to the clipboard
b) execute the executable
c) the executable takes the clipboards content and separate its content into single parameters/variables
d) be impressed :lol:

Lumumba

Post by Lumumba » Fri Jul 09, 2004 6:57 am

As MJTNet support seems now back on the track, any bit to say on that request. Thx.

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