Scheduled Tasks result code

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?
 
P

Pegasus [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top