|
| | |||||||
| Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna |
| | LinkBack | Thread Tools |
| |||
| Scheduled task (run .bat file) fails every time with 0x80070002 (file not found) 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> |
| |||
| Re: Scheduled task (run .bat file) fails every time with 0x80070002 (file not found) 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. [url]http://www.microsoft.com/wn3/locales/help/help_en-us.htm[/url] Mark L. Ferguson MS-MVP [url]https://mvp.support.microsoft.com/profile/Mark.Ferguson[/url] "Baffled" <guest@unknown-email.com> wrote in message news:3871f13f2899c2b1d7bde67e5cac6467@nntp-gateway.com...[color=blue] > > Same problem as yours, but I 'm not as knowlegeable as you're. > Sorry > Baffled > > > -- > Baffled[/color] |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The system cannot find the file specified. (0x80070002) | Rich T | Windows Vista | 3 | 10-01-2009 02:30 AM |
| File Not found or no read permission when try to compress file. | Eskimosound | Windows XP | 0 | 04-11-2008 03:20 PM |
| What happens if a scheduled task is scheduled to start, but theprevious task execution is still running? | joe.carr@gmail.com | Windows XP | 1 | 12-17-2007 11:40 AM |
| Scheduled Tasks settings fails when hibernated to "Wake the computer to run this task" | Michel Merlin | Windows XP | 0 | 09-10-2007 04:10 AM |
| Scheduled Task Fails. | Waz Up | Windows XP | 6 | 04-29-2007 09:30 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |