Sign in to follow this  
Followers 0
ter-pierre

Event Viwer

6 posts in this topic

Hi

still migrating my KIX script to AutoIT...

I have a KIX script that identify when ocours event ID 2022. The script dump the event log to a tmp file than find 2022 event.

May i do this with AutiIT? some idea?

Pierre

Share this post


Link to post
Share on other sites



I try to use

dumpel -f c:\event.log -l system -m rdr -e 2022 (from resource kit)

but this generates an empty file!

Pierre :ph34r:

Share this post


Link to post
Share on other sites

Does it work if you execute that line from the DOS prompt? If so, then what is the AU3 code that you are using to execute it?

Share this post


Link to post
Share on other sites

the dompel command line dont works! if they works i need jost to call it in my AU3 script, but dont works

:ph34r:

Share this post


Link to post
Share on other sites

I'd say that's probably why you're getting an empty file :ph34r:

I don't know dumpel/dompel .. but the general rule for a commandline app is: get the parameters and syntax right, by experimenting at the DOS prompt; then paste that into AU3.

When you execute from AU3, you would use Run (or RunWait, depending on your needs) .. eg:

;launch a DIR command to list all child ini files
    $sCMD = "dir /s/b *.ini>c:\~inifiles.lst"
    $sPath = "C:\WINNT\"
    RunWait(@COMSPEC & " /c " & $sCMD, $sPath, @SW_HIDE)

However .. you might run dumpel like this though (note that @COMSPEC is not used here):

;you'd need to get satisfactory results from the DOS prompt first;o)
    $sCMD = "dumpel -f c:\event.log -l system -m rdr -e 2022"
    $sPath = "C:\WINNT\" ; .. might not even need this, depending on where dumpel.exe sits
    RunWait($sCMD, $sPath, @SW_HIDE)

HTH :(

Share this post


Link to post
Share on other sites

excuse...

the dumpel line command that i use was wrong parameter.

the corect line command is:

dumpel -f c:\event.log -l system -m srv -e 2022

srv, not rdr!

now the script is runnig fine

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