batch file event

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hi I have a small batch file for backing up the drive,this is run a s a
daily task,is there any way of adding it into event viewer so we know if its
worked ok?
Thanks
 
Hi I have a small batch file for backing up the drive,this is run a s a
daily task,is there any way of adding it into event viewer so we know if its
worked ok?
Thanks

Yes.

Logevent.exe from the W2K Server reskit or Supplement One.
See tip 3277 in the 'Tips & Tricks' at http://www.jsiinc.com for the list of
tools.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Martin said:
Hi I have a small batch file for backing up the drive,this is run a s a
daily task,is there any way of adding it into event viewer so we know if its
worked ok?

eventcreate.exe could do what you want, unfortunately this is
an XP/2003 utility:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/eventtriggers.mspx

so it may not help you.

--
Matt Hickman
Don't you know about Sergeants? ... They don't
have mothers...They reproduce by fission...like
all bacteria.
- Robert A. Heinlein (1907-1988)
_Starship Troopers_ (c 1959)
 
Martin said:
Hi I have a small batch file for backing up the drive,this is run a s a
daily task,is there any way of adding it into event viewer so we know if its


You can also use LogEvent method using WSH and VBS for this:

Set objShell = Wscript.CreateObject("Wscript.Shell")
objShell.LogEvent 0, "daily drive backup successfully run"

--
Matt Hickman
The air is so pure [in the Tricorn] that it really ought to be
voted a medal by the Society for the Suppression of Evil thoughts.
Robert A. Heinlein (1907 -1988)
_Podkayne of Mars_ 1963
 
Back
Top