Scheduled Tasks result code

  • Thread starter Thread starter st
  • Start date Start date
S

st

I have a task which runs a cmd file. The Last Result field in sheduler is
0x1. What is this? A scheduler code, the command interpreter code, or code
from last command in file? If it is not latter, what does it mean?
 
st said:
I have a task which runs a cmd file. The Last Result field in sheduler is
0x1. What is this? A scheduler code, the command interpreter code, or code
from last command in file? If it is not latter, what does it mean?

It's the return code from the last command in the file. You need to find out
yourself what it is, e.g. like so:

@echo off
"c:\tools\mycmd.exe" 1>>c:\test.txt 2>>&1

Now examine c:\test.txt.
 
Back
Top