Sign in to follow this  
Followers 0
GRCM

Event Viewer

3 posts in this topic

Hi,

Is possible to AutoIT write an event on the event viewer? How?

I like to write some event on it

Share this post


Link to post
Share on other sites



@GRCM

Ofcourse it is possible.

This is some code snippet for some application.

Run("eventcreate /T Information /ID 100 /L Application /SO SMART /D " & _
            Chr(34) & "SMART Harddisk Status : "&$Column8 & _
            @CR&"ID"&"  "&"Attribute"&@Tab&@Tab&"Type"&@Tab&"Threshold"&@Tab&" Value"&" "&"Worst"&"   "&"Raw"& _
            @CR&$Column1&" "&$Column2&" "&$Column3&" "&$Column4&@Tab&$Column5&"       "&$Column6&" "&$Column7&Chr(34), "", @SW_HIDE, 2)

You can also use WMI to create events.

regards

ptrex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0