Command Line function

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
fme

Command Line function

Post by fme » Tue Dec 17, 2002 2:39 pm

Hello
just downloaded this fine piece of software for testing.
Some questions :
Is it possible to pass parameters via the command line ?
I would need to run a macro during working hours - is there a possibilty to do this (In the Properties dialog there is only a AT: box)?

Thanks for the help

Frank
Switzerland

Ernest

Post by Ernest » Tue Dec 17, 2002 3:04 pm

Ja, laut Command Reference sollte gehen !

Check "Command Line" in the CmdRef:

" ... you can also pass parameter values into the script :

msched Example Script /filename=testfile.txt /path=c:\outpath\

The above example runs a script called 'Example Script' and passes two variable values in filename and path. These variables can be used in the usual way within the script, ... "

Ernest

fme

Command Line function

Post by fme » Tue Dec 17, 2002 3:31 pm

Ernest
Thanks for the hint. In fact I was looking for a parameter to specify the run time, or a parameter to disable a macro.
E.g. run a Macro form the command line at 17:00, or disable a macro that runs 5 times a day in order to prvent the next execution.

Ernest

Post by Ernest » Tue Dec 17, 2002 4:00 pm

Hi,
beside the advanced options at "macro properties/run when" you could use something like this:

Code: Select all

Let>Feierabend=18
Let>Morgenstund=10

Label>Chef
hour>Stunde
If>Stunde>Feierabend, WartNochAWeng
If>Stunde<Morgenstund, WartNochAWeng
Label>Schaffe
...


Label>WartNochAWeng
Wait>3600
Goto>Chef
Gruß
Ernest

fme

Post by fme » Tue Dec 17, 2002 5:47 pm

Hallo Ernest
cool ! It works :D
Danke für den guten Tipp

Gruss
Frank

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