| 1. |
Solve : Batch scripts/Scheduled Tasks? |
|
Answer» I am running batch SCRIPTS using the Scheduled Tasks feature in XP Pro. When run in Cmd.exe the scripts output info to the screen but not when run in Sched Tasks. The scripts run to completion and create expected disk files but no screen output. Is it possible to output to the screen when using Sched Tasks please? How do you know it's a task scheduler problem? I reckon it's not a scripting problem as other programs which normally show screen output do not do so when started from Task Scheduler. However, I've tried to run a script (Files.bat) which, although it doesn't have Pause commands in it does have Ping commands to create a short pause in execution. The attachments show programs running without screen output (Solitaire {sol.exe} and Pinball.exe). Quote from: killerb255 the task will run as whatever user credentials are specified in the task. If that user is different than the user logged on, there will be no screen output. I haven't yet found the checkbox "Run only when logged on" but will continue searching. There is just one user on the system (see Accounts attachment) so the chances of tasks running in another user are fairly slim. Following is an extract from the Task scheduler log to show that the script Files.bat ran to completion but without screen output - Quote "Task Scheduler Service" Any more suggestions will be appreciated. Thanks again [attachment deleted by ADMIN]On the tasksched.jpg screenshot, right-click your Scheduled Task and left-click Properties. The check box should be there. |
|