Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

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 :(

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...