Re: Changing "Failed" Error Code



I actually found the solution at MyItForum.

A two line batch file:

(NOTE: This is for SuperDAT (both Engine and DAT), for XDAT (just DAT) use
xdat.exe--both instances have had version removed, so that batch never has
to be edited. Also, for xdat, change number in second line from 44 to 49).

sdat.exe /SILENT /PROMPT
if errorlevel 44 exit /B 0

Works GREAT!

But...probably ought to have some kind of error translation built-in to
SMS...

Thanks.
"Kim Oppalfens <MVP>" <Kim dot Oppalfens@google mail.com> wrote in message
news:ehg7SyOWGHA.2376@xxxxxxxxxxxxxxxxxxxxxxx

Was your original advertisement a mandatory one?

--
Kim Oppalfens
Telindus Belgium
MVP Windows Server System - SMS
"Bill Bradley" <wdbradley3@xxxxxxxxxxx> wrote in message
news:O9eW%23HeVGHA.1728@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to deploy the McAfee SuperDAT file on a recurring basis, and,
once the program has run on a computer and updated the McAfee Engine and
DAT, the next time it runs, it does nothing (since the files are already
updated), and generates an Error Code of 44, meaning "Files are already
updated", but, SMS interprets this as a Failure in the Log.

Is it possible to intercept this, so that the Error Code of 44 is not
reported as a Failure?

Thanks.





.



Relevant Pages

  • Re: Compiling m-file to C
    ... It starts compiling from m- ... operable program or batch file. ... (error code = 1). ... Error executing mcc, return status = 1. ...
    (comp.soft-sys.matlab)
  • Re: Error code 4 for Task Scheduler
    ... > I am getting an error code 4 upon a scheduled task trying to run. ... > is running an MS-DOS batch file with an XCOPY command in it to transfer ... The batch file runs fine when run manually, ...
    (microsoft.public.win2000.general)
  • Re: Error code 4 for Task Scheduler
    ... If it involves network resources, make sure the user account has permissions ... |I am getting an error code 4 upon a scheduled task trying to run. ... The batch file runs fine when run manually, ...
    (microsoft.public.win2000.general)
  • Re: remote machine execution
    ... ECHO will always works, BUT if u ever pass parameters to batch file, it will ... cmd.exe exited on host with error code 0. ... That's four working variants. ...
    (microsoft.public.windows.server.scripting)
  • Trouble running BAT file from P9...?
    ... I need to run a batch file from Paradox, ... What's causing the failure? ...
    (comp.databases.paradox)