Guest Bob Posted September 20, 2008 Posted September 20, 2008 I have created a few scheduled tasks which will run a .BAT file. The BAT file contains a line to run NTBACKUP. If I run the .bat file from command line, NTBACKUP starts. If I run the Scheduled Task from Task scheduler, it will shows it runs and quits after a few seconds. Properties of the task: Run: "C:\Scripts\Weekly Backup.bat" Start In: c:\Scripts From the task scheduler's log: "Weekly Full Backup.job" (ntbackup.exe) Started 9/20/2008 7:29:45 PM "Weekly Full Backup.job" (ntbackup.exe) Finished 9/20/2008 7:29:49 PM Result: The task completed with an exit code of (0). Any idea?
Guest Meinolf Weber Posted September 20, 2008 Posted September 20, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt run Hello Bob, What account are you using to run the it? Has the account the user rights "log on as a batch job" "backup files and directories"? Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights. ** Please do NOT email, only reply to Newsgroups ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm > I have created a few scheduled tasks which will run a .BAT file. The > BAT file contains a line to run NTBACKUP. > > If I run the .bat file from command line, NTBACKUP starts. > > If I run the Scheduled Task from Task scheduler, it will shows it runs > and quits after a few seconds. > > Properties of the task: > Run: "C:\Scripts\Weekly Backup.bat" > Start In: c:\Scripts > From the task scheduler's log: > "Weekly Full Backup.job" (ntbackup.exe) > Started 9/20/2008 7:29:45 PM > "Weekly Full Backup.job" (ntbackup.exe) > Finished 9/20/2008 7:29:49 PM > Result: The task completed with an exit code of (0). > Any idea? >
Guest Pegasus \(MVP\) Posted September 20, 2008 Posted September 20, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt run "Bob" <Bob@discussions.microsoft.com> wrote in message news:7A6CFCD6-7CDB-4D5C-B170-4FC81D433177@microsoft.com... >I have created a few scheduled tasks which will run a .BAT file. The BAT >file > contains a line to run NTBACKUP. > > If I run the .bat file from command line, NTBACKUP starts. > > If I run the Scheduled Task from Task scheduler, it will shows it runs and > quits after a few seconds. > > Properties of the task: > Run: "C:\Scripts\Weekly Backup.bat" > Start In: c:\Scripts > > From the task scheduler's log: > "Weekly Full Backup.job" (ntbackup.exe) > Started 9/20/2008 7:29:45 PM > "Weekly Full Backup.job" (ntbackup.exe) > Finished 9/20/2008 7:29:49 PM > Result: The task completed with an exit code of (0). > > Any idea? What does the log file generated by ntbackup.exe report?
Guest Bob Posted September 20, 2008 Posted September 20, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Where is this file located at? "Pegasus (MVP)" wrote: > > "Bob" <Bob@discussions.microsoft.com> wrote in message > news:7A6CFCD6-7CDB-4D5C-B170-4FC81D433177@microsoft.com... > >I have created a few scheduled tasks which will run a .BAT file. The BAT > >file > > contains a line to run NTBACKUP. > > > > If I run the .bat file from command line, NTBACKUP starts. > > > > If I run the Scheduled Task from Task scheduler, it will shows it runs and > > quits after a few seconds. > > > > Properties of the task: > > Run: "C:\Scripts\Weekly Backup.bat" > > Start In: c:\Scripts > > > > From the task scheduler's log: > > "Weekly Full Backup.job" (ntbackup.exe) > > Started 9/20/2008 7:29:45 PM > > "Weekly Full Backup.job" (ntbackup.exe) > > Finished 9/20/2008 7:29:49 PM > > Result: The task completed with an exit code of (0). > > > > Any idea? > > What does the log file generated by ntbackup.exe report? > > >
Guest Bob Posted September 20, 2008 Posted September 20, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Re: Scheduled tasks run (says Task Scheduler) but program doesnt r It is using the default administrator account... So i dont think i need to assign that user rights to it... "Meinolf Weber" wrote: > Hello Bob, > > What account are you using to run the it? Has the account the user rights > "log on as a batch job" "backup files and directories"? > > Best regards > > Meinolf Weber > Disclaimer: This posting is provided "AS IS" with no warranties, and confers > no rights. > ** Please do NOT email, only reply to Newsgroups > ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm > > > > I have created a few scheduled tasks which will run a .BAT file. The > > BAT file contains a line to run NTBACKUP. > > > > If I run the .bat file from command line, NTBACKUP starts. > > > > If I run the Scheduled Task from Task scheduler, it will shows it runs > > and quits after a few seconds. > > > > Properties of the task: > > Run: "C:\Scripts\Weekly Backup.bat" > > Start In: c:\Scripts > > From the task scheduler's log: > > "Weekly Full Backup.job" (ntbackup.exe) > > Started 9/20/2008 7:29:45 PM > > "Weekly Full Backup.job" (ntbackup.exe) > > Finished 9/20/2008 7:29:49 PM > > Result: The task completed with an exit code of (0). > > Any idea? > > > > >
Guest Pegasus \(MVP\) Posted September 20, 2008 Posted September 20, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Re: Scheduled tasks run (says Task Scheduler) but program doesnt r In one of your profile folders. Look for backup??.log. "Bob" <Bob@discussions.microsoft.com> wrote in message news:1F8FF48A-7CE6-4049-8A49-74CEEEEE3CC8@microsoft.com... > Where is this file located at? > > "Pegasus (MVP)" wrote: > >> >> "Bob" <Bob@discussions.microsoft.com> wrote in message >> news:7A6CFCD6-7CDB-4D5C-B170-4FC81D433177@microsoft.com... >> >I have created a few scheduled tasks which will run a .BAT file. The BAT >> >file >> > contains a line to run NTBACKUP. >> > >> > If I run the .bat file from command line, NTBACKUP starts. >> > >> > If I run the Scheduled Task from Task scheduler, it will shows it runs >> > and >> > quits after a few seconds. >> > >> > Properties of the task: >> > Run: "C:\Scripts\Weekly Backup.bat" >> > Start In: c:\Scripts >> > >> > From the task scheduler's log: >> > "Weekly Full Backup.job" (ntbackup.exe) >> > Started 9/20/2008 7:29:45 PM >> > "Weekly Full Backup.job" (ntbackup.exe) >> > Finished 9/20/2008 7:29:49 PM >> > Result: The task completed with an exit code of (0). >> > >> > Any idea? >> >> What does the log file generated by ntbackup.exe report? >> >> >>
Guest David Posted September 22, 2008 Posted September 22, 2008 Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Re: Scheduled tasks run (says Task Scheduler) but program doesnt r Hello, Are you scheduling the task with the same username and password that you are testing running the .cmd file as? The reason I ask is because the selection list file will be stored in C:\Documents and Settings\{username} and Administrator might not have permissions if the Selection list is stored in your personal profile? Thanks, http://centrel-solutions.com
Recommended Posts