Solved

windows task scheduler

Posted on 2015-01-29
5
720 Views
Last Modified: 2015-01-29
when running a scheduled task in Windows 7 I receive a last run result 0x2
I have checked to make sure the task is set to run with highest privileges enabled
is there a complete list of what each last run result means
0
Comment
Question by:aww31763
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 14

Expert Comment

by:William Fulks
ID: 40578158
0x2 means it cannot find a file. Can you give more detail about your scheduled task? If you're running a batch file or something make sure there aren't any typos in the format.
0
 
LVL 30

Accepted Solution

by:
flubbster earned 500 total points
ID: 40578282
here is a list of codes:

0 or 0x0: The operation completed successfully.
1 or 0x1: Incorrect function called or unknown function called.
2 or 0x2: File not found.
10 or 0xa: The environment is incorrect.
0x41300: Task is ready to run at its next scheduled time.
0x41301: Task is currently running.
0x41302: Task is disabled.
0x41303: Task has not yet run.
0x41304: There are no more runs scheduled for this task.
0x41306: Task is terminated.
0x8004131F: An instance of this task is already running.
0x800704DD: The service is not available (is 'Run only when an user is logged on' checked?)
0xC000013A: The application terminated as a result of a CTRL+C.
0xC06D007E: Unknown software exception.
0
 

Author Comment

by:aww31763
ID: 40578323
I use the task to call a bat file and run a robocopy command with several switches.
the purpose is to backup user data from a server to an external USB drive attached to a Windows 7 computer in my office
the robocopy command with switches is
:: LCHS
Robocopy \\LCHS\A2H\   I:\LCHS\ /s /xo /b  /copyall  /r:2 /w:2 /log:c:\BATCH\BACKUPLOGS\User-A2H_backup_%day%.log

at the end it writes the results out to a log file.  

hope this helps a bit and for my own piece of mind I would like to find a complete list of all the last result codes and what they mean
0
 

Author Comment

by:aww31763
ID: 40578356
I have been using this batch file as well as a number of others for a number of years, and recently noticed the last run result was different.  I was typing when Flubbster posted the list of what the code meat.  for that I thank him and will use it to troubleshoot my issue.
0
 

Author Closing Comment

by:aww31763
ID: 40578359
gives me a few more pieces of the puzzle to work with
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question