in reply to Cron Job??

Even though this is a bit off-topic here...

There is the at.exe program for the at service. Just type at --help or at /? at the command prompt to get a description of how to run at.

There is no such thing as crontab under NT, you'll have to log in as (or otherwise change to) the user you want your at job to be run as.

Update : arturo alerted me to the fact that the previous paragraph is quite unclear : It is possible to have jobs run as (almost any) user, but to set up that job you must log in as that user (or use the su.exe utility from the NT Resource Kit).

Replies are listed 'Best First'.
Re: Re: Cron Job??
by $code or die (Deacon) on Apr 03, 2001 at 23:56 UTC
    Of course, you could write a service to this rather than using Scheduler (AT). You can do this is Perl if you use Win32::Daemon. This also gets around the user permissions problem above. Its quite straightforward to do this and the module comes with a couple of template examples. Running as a services also has the advantage that it can be set to start automatically on bootup (and restart if failed in Win2K).

    OTOH, you can script the AT command with Win32::AdminMisc. Use Win32::AdminMisc::ScheduleAdd(). The script that is run by AT, can then use Win32::AdminMisc::LogonAsUser() to impersonate another user. </code>

    $ perldoc perldoc