Re: Scheduled tasks won't start



I suspect you're trying to run this product on a server
even though it may not be meant for a server.

The message
"ERROR: this script needs Windows 2000 or better."
is generated by this line in xdbdown.cmd:
if not "%OS%" == "Windows_NT" goto BADOS

You can prevent it from interfering by modifying the line like so:
rem if not "%OS%" == "Windows_NT" goto BADOS

To identify which line generates the error message
"The system cannot find the file specified.", you must do
a) and b) below:

a) Modify your own batch file like so:
L1 @echo off
L2 path %path%;%SystemRoot%;%SystemRoot%;system32
L3 echo %date% %time% Start of task > c:\test.log
L4 echo User=%UserName%, Path=%path% >> c:\test.log
L5 call "c:\Program Files\xdbdown\xdbdown.cmd" 2>&1 >c:\Symantec.txt
L6 echo ErrorLevel of "c:\Program Files\xdbdown\xdbdown.cmd"=%ErrorLevel% >>
c:\test.log
L7 echo %date% %time% End of task >> c:\test.log

I added L2 because you keep reporting that your path
is blank. This is inappropriate.

Remove the line numbers before running the batch file!

b) Remove the line "echo off" from xdbdown.cmd

You can now schedule the task and look in c:\Symantec.txt for
the string "The system cannot find the file specified".

By the way: The Subject line of this thread is obviously incorrect.
The scheduled task DOES start . . .


"Rafi Hecht" <rhecht@xxxxxxxxx> wrote in message
news:1133904449.595558.45320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> a) Yes
> b) Instructions to automatically download and install the latest virus
> defs from the Symantec website.
>
> Here's the whole code from the cmd file copied/pasted:



.



Relevant Pages

  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... without seeing the whole batch file I am unable to offer any further ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... - Add three statements to the batch file, two at the start, one at the ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • Re: Access Denied Error -- Reading Text File in .BAT program
    ... Since you can't post the whole batch file, I can only offer some hints: ... echo Start %date% %TimeMarker%>> c:\test.txt ... on the server console. ... It is strange the file disappears completely after using the NET FILE ...
    (microsoft.public.scripting.wsh)
  • Re: need a program to email me when service stops
    ... @echo off ... set Subject=%date% %time:~0,5%: SomeService is not running ... Microsoft MVP: Windows Server ... It's basically a batch file that you create. ...
    (microsoft.public.windows.server.general)
  • Re: How to backup files using original extension
    ... The Server stays on 24/7 ... @echo off ... REM Backup to Server script ... this as a batch file that runs a few times a day via task scheduler. ...
    (microsoft.public.win2000.general)