MatthewJames
10th April 2002, 17:40
Is it possible to automate job exectuiton on a NT Box using Winat? if so what do I need to do?

victor_cleto
10th April 2002, 19:18
Check Baan solution 2378 (schedule with at, no IE5) and 9629 (schedule with Scheduler, IE5) for more informations.
In resume, you create a batch file (.bat) that runs a:

start bw <your_job.bwc> -- -set BSH_JOB=%1 ttaad5203m000

- where %1=job name

You can create several .bat files for each job user you have or use a common one where you must give not only the job name but also the <your_job.bwc> file as parameter, like:

start bw %1 -- -set BSH_JOB=%2 ttaad5203m000

- where %1=<your_job.bwc> file and %2=job_name

Now to schedule a job just use:
at \\<server> hour:minutes [other_options_here] cmd /c <.bat_file> [whatever_parameters_the_.bat_needs]

Check the correct/full options thru Start -> Help, search for 'at'. Note that your scheduler service must be running.
If you installed IE5, you have a "Task scheduler", so use it instead (GUI thingy).

MatthewJames
11th April 2002, 12:27
Thanks very much I shall give that a go