Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Scheduled tasks run (says Task Scheduler) but program doesnt run

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-09-2008
Bob
 
Posts: n/a
Scheduled tasks run (says Task Scheduler) but program doesnt run

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?
Reply With Quote
  #2  
Old 20-09-2008
Meinolf Weber
 
Posts: n/a
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?
>



Reply With Quote
  #3  
Old 20-09-2008
Pegasus \(MVP\)
 
Posts: n/a
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?


Reply With Quote
  #4  
Old 20-09-2008
Bob
 
Posts: n/a
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?
>
>
>

Reply With Quote
  #5  
Old 20-09-2008
Bob
 
Posts: n/a
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?
> >

>
>
>

Reply With Quote
  #6  
Old 20-09-2008
Pegasus \(MVP\)
 
Posts: n/a
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?
>>
>>
>>



Reply With Quote
  #7  
Old 22-09-2008
David
 
Posts: n/a
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

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Scheduled tasks run (says Task Scheduler) but program doesnt run"
Thread Thread Starter Forum Replies Last Post
Task Scheduler - task creation error on Windows 2008 Server x64 $Bradan$ Operating Systems 5 29-09-2011 02:03 PM
Scheduled task program in java Aaliya Seth Software Development 4 08-03-2010 01:48 PM
Windows Scheduled Tasks don't luanch if tasks not finished Andy Candy Windows Software 3 21-08-2009 12:47 PM
Scheduled Tasks: Notify me of missed tasks Swifty Windows XP Support 2 02-01-2009 02:45 PM
Old tasks in Task Scheduler Michael Windows Vista Performance 3 16-09-2007 03:44 AM


All times are GMT +5.5. The time now is 05:51 AM.