Re: Scheduled tasks won't start




"Rafi Hecht" <rhecht@xxxxxxxxx> wrote in message
news:1133387316.764098.316000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I currently operate a machine with Windows 2000 server on it, and am
> trying to schedule a task that will execute a .cmd file every night at
> a certain time. I tried to run it but it wouldn't go. I entered the
> administrator password and the "task" ran. However, the process that
> the file was supposed to do didn't. I was able to manually run the
> script in the past simply by double-clicking it, but now I'm looking
> for a shortcut. Any advice on this would be greatly appreciated.
>

You need to give yourself some "eyes" so that you can see what's
going on. Use the Task Scheduler to run this batch file:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\Tools\YourTask.exe 1>>c:\test.log 2>c:\test.err
echo ErrorLevel of c:\Tools\YourTask.exe=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log

Now have a look at the two log files and all will become clear.


.



Relevant Pages

  • Executing exp as batch job fails
    ... Using Oracle 9.2.0.4/Windows 2000 I am trying to schedule an automatic ... dump of a database from a DOS window: ... (meaning: execute dump.bat every Thursday at 17:00 hours) ... I have no problem connecting to the database locally as the ...
    (comp.databases.oracle.misc)
  • Re: cube backup SQL Server 2000
    ... You can schedule this .cmd file with windows scheduler to have the backup ... or better say everything u can see in Analysis Manager (the ... whole database) so u can just copy it to another server and use it there ...
    (microsoft.public.sqlserver.olap)
  • Re: cube backup SQL Server 2000
    ... You can schedule this .cmd file with windows scheduler to have the backup ... or better say everything u can see in Analysis Manager (the ... whole database) so u can just copy it to another server and use it there ...
    (microsoft.public.sqlserver.olap)
  • Scheduled tasks wont start
    ... I currently operate a machine with Windows 2000 server on it, ... trying to schedule a task that will execute a .cmd file every night at ...
    (microsoft.public.win2000.general)
  • Re: Scheduled Task Exit Code
    ... Here is the contents of the batch file: ... Schedule At 11:30 PM every day, ... Read & Execute Allow ... The task completed with an exit code of. ...
    (microsoft.public.windows.server.general)