Scheduling a macro _once_

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

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

Scheduling a macro _once_

Post by bernie » Mon Feb 10, 2003 12:35 am

Is it possible to set up the scheduler so that it only runs a macro _once_ [at the appointed time, of course]. It seems that the only option I have is to set it to run "every monday" rather than just "tomorrow".

As a related inquiry -- has anyone written a macro to manipulate MSched *itself*. cna that be done, does it work? [I'm thinking here that I'd like to be able to write a macro that takes:
runit macroname date time
and does the right magic to set up the 'schedule' stuff so that the so-named macro will actually get run at the appointed time. [and then another "stopit" that'll cancel any scheduled runs for the macro.

Basically, I'm trying to make using the mschedl macro-scheduling machinery less mouse-click-click-click intensive...
/Bernie\

Lumumba

Post by Lumumba » Mon Feb 10, 2003 9:35 am

Check the AT (DOS) command (cmd /k at /?).
Used in a batch file (executed at boot from startup folder) should work.

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

Post by bernie » Mon Feb 10, 2003 1:19 pm

Wow.. I'm new to XP [obviously] and I didn't realize that they had 'at'... as an old-line Unix guy, I'm familiar with, and comfortable with, 'at so I should be all set.

What's neat is that since it is a 'cmd', I can easily use one msched script to "schedule" another.

Neat! Thanks!!
/Bernie\

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Feb 10, 2003 2:00 pm

AT has been around since NT3.x! :-)
MJT Net Support
[email protected]

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

Post by bernie » Mon Feb 10, 2003 2:06 pm

That might be true, but I'm a "desktop" refugee. As I retire my old, trusty, Win98 system, I'm daunted by how much [mostly all neat/good stuff!] I need to learn about XP/Pro...
/Bernie\

Lumumba

Post by Lumumba » Mon Feb 10, 2003 7:36 pm

So if AT is OK for you - check this out: NT-Commands

Lumumba

Post by Lumumba » Mon Feb 10, 2003 7:43 pm

So, if AT is OK for you - check this out: NT-Commands

Lumumba

Post by Lumumba » Mon Feb 10, 2003 7:52 pm

No, not again :D

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