Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Scheduled task (run .bat file) fails every time with 0x80070002 (file not found)

Reply
Thread Tools Display Modes

Scheduled task (run .bat file) fails every time with 0x80070002 (file not found)

 
 
Ben Dilts
Guest
Posts: n/a

 
      07-17-2008
I have a .bat file on a local hard drive that I'd like to run every night.
I set up a scheduled task to do it. It worked great for about 8 days, then
began to fail every time on task startup. I get the following message: "The
system cannot find the file specified. (0x80070002)". The History tab for
the task shows an error: "Launch Failure". I made the .bat file do nothing,
and I get the same error, so the error is definitely not coming from my
batch file. I get the same error if I right-click the task and click Run.

I checked, and the task scheduler service is in fact running.

For what it's worth, I've included the XML Details on the "Task Start
Failed" error.

I checked, and the .bat file is still in the same place it always was. I
deleted and recreated the "Start a program" action on the task, browsing to
and selecting my .bat file, so the path is definitely correct.

What's going on here?


Ben Dilts

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Microsoft-Windows-TaskScheduler"
Guid="{de7b24ea-73c8-4a09-985d-5bdadcfa9017}" />
<EventID>101</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>101</Task>
<Opcode>101</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2008-07-17T16:37:33.161Z" />
<EventRecordID>23192</EventRecordID>
<Correlation />
<Execution ProcessID="1008" ThreadID="1524" />
<Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
<Computer>Zeus.zanebenefits.local</Computer>
<Security UserID="S-1-5-18" />
</System>
- <EventData Name="TaskStartFailedEvent">
<Data Name="TaskName">\Corporate website snapshot</Data>
<Data Name="UserContext">ZANEBENEFITS\ben.dilts</Data>
<Data Name="ResultCode">2147942402</Data>
</EventData>
</Event>

 
Reply With Quote
 
 
 
 
Baffled
Guest
Posts: n/a

 
      07-22-2008

Same problem as yours, but I 'm not as knowlegeable as you're
Sorr
Baffle

--
Baffled
 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      07-22-2008
When you setup a task, one of the checkboxes will allow you to run the task
with the highest privileges

--
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales...help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

"Baffled" <> wrote in message
news:...
>
> Same problem as yours, but I 'm not as knowlegeable as you're.
> Sorry
> Baffled
>
>
> --
> Baffled


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista backup error message: The system cannot find the file specified(0x80070002) ron_daves@yahoo.com Windows Vista General Discussion 1 05-31-2008 05:05 PM
The system cannot find the file specified. (0x80070002) Rich T Windows Vista General Discussion 2 04-23-2008 07:28 PM
backup error "the system cannot find the file specified 0x80070002 OzzieM Windows Vista Performance 0 11-18-2007 05:52 PM
Vista backup error 0x80070002 system cannot find the file specifie Learning to work with the Borg Windows Vista General Discussion 4 06-05-2007 06:39 PM
File not found Arun Balaji Windows Vista General Discussion 0 05-20-2007 11:28 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59