Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vlisp way to do this?

1 REPLY 1
Reply
Message 1 of 2
ChrisVillan
177 Views, 1 Reply

vlisp way to do this?

I'd like to run LogParser from autolisp/vlisp. LogParser has a COM API. I'm not familiar with using vlisp activex commands. Here's a vbs example of calling logparser: 'BEGIN Dim oLogQuery Dim oEVTInputFormat Dim oCSVOutputFormat Dim strQuery Set oLogQuery = CreateObject("MSUtil.LogQuery") ' Create Input Format object Set oEVTInputFormat = CreateObject("MSUtil.LogQuery.EventLogInputFormat") oEVTInputFormat.direction = "BW" ' Create Output Format object Set oCSVOutputFormat = CreateObject("MSUtil.LogQuery.CSVOutputFormat") oCSVOutputFormat.tabs = TRUE ' Create query text strQuery = "SELECT TimeGenerated, EventID INTO C:\output.csv FROM System" strQuery = strQuery & " WHERE SourceName = 'Application Popup'" ' Execute query oLogQuery.ExecuteBatch strQuery, oEVTInputFormat, oCSVOutputFormat 'END Would someone please guide me in translating this to lisp? To start, in lisp, I think I have to use something like. Please correct me: (setq oWsh (vlax-create-object "MSUtil.LogQuery") (setq oCSVOutputFormat (vlax-create-object "MSUtil.LogQuery.CSVOutputFormat") (setq oEVTInputFormat (vlax-create-object "MSUtil.LogQuery.EventLogInputFormat") I appreciate your help. Chris
1 REPLY 1
Message 2 of 2
rkmcswain
in reply to: ChrisVillan

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost