Task Scheduler Codes

A

Alynn

Is there a list anywhere of what the result and exit codes
mean in task scheduler?

I'm trying to run a batch file to copy files over the
network (a mapped drive), I originally was getting
result=0x4, then I mapped the drive in the batch file and
now I'm getting result=0x2. When I run the file from
Windows explorer it works fine either way, but it won't
run as a task.

I've done some searches and can't find a list of what
these codes mean, does anyone know where to find this
information?

thanks
Alynn
 
P

Pegasus \(MVP\)

Alynn said:
Is there a list anywhere of what the result and exit codes
mean in task scheduler?

I'm trying to run a batch file to copy files over the
network (a mapped drive), I originally was getting
result=0x4, then I mapped the drive in the batch file and
now I'm getting result=0x2. When I run the file from
Windows explorer it works fine either way, but it won't
run as a task.

I've done some searches and can't find a list of what
these codes mean, does anyone know where to find this
information?

thanks
Alynn

Most Task Scheduler exit codes are set by the application
that runs under the Task Scheduler.

Modify your batch file so that you can see what's going on:

net use x: \\SomeServer\SomeShare 1>c:\test.log 2>c:\test.err

Now examine your log files and all will become clear!
 

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