Solved

Adding events in eventlog from batchfile

Posted on 1998-09-12
3
268 Views
Last Modified: 2013-12-23
How can i add events to the application eventlog using a .cmd file running in cmd.exe .
I scheduled a .cmd file to run at specific times but i'd like to be able to verify that the commandfile started because on the first line of the .cmd file i will run a command putting some text in the evenlog. Are there any tools for this ?
0
Comment
Question by:srodenburg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:gasim
ID: 1562073
Raise your points and I'll give you the solution!
0
 
LVL 5

Accepted Solution

by:
carmine earned 50 total points
ID: 1562074
The Resource Kit(s) contain LOGEVENT.EXE which allows a batch job (or command line) to log events to the Application Event Log.


Usage:

     LOGEVENT [-m \\MACHINENAME] [-s SIWEF] [-c CategoryNumber] "Event Text"

0
 

Author Comment

by:srodenburg
ID: 1562075
Thanks Carmine. Gasim is a bit greedy. Raise point for this easy question. Yeah right...
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question