ter-pierre Posted September 27, 2004 Share Posted September 27, 2004 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 Link to comment Share on other sites More sharing options...
ter-pierre Posted September 27, 2004 Author Share Posted September 27, 2004 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 Link to comment Share on other sites More sharing options...
trids Posted September 28, 2004 Share Posted September 28, 2004 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? Link to comment Share on other sites More sharing options...
ter-pierre Posted September 28, 2004 Author Share Posted September 28, 2004 the dompel command line dont works! if they works i need jost to call it in my AU3 script, but dont works Link to comment Share on other sites More sharing options...
trids Posted September 28, 2004 Share Posted September 28, 2004 I'd say that's probably why you're getting an empty file 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 Link to comment Share on other sites More sharing options...
ter-pierre Posted September 28, 2004 Author Share Posted September 28, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now