1 Message

May 6th, 2010 10:00

EcmEventLog is documented in the help but I have tried to do much with it.

For your specific issue with quotes I eventually got this to work

Lots of double quoting.

strParser = EcmAgtContext.GetHelperAppFile("parsemif.clsparse")

strCommand = "cscript /nologo " & EcmAgtContext.JobDownloadDirectory & "\csv2mif.vbs /utility:""schtasks.exe"" /UtilParms:""/query /v /fo csv"" /ComponentName:""Scheduled Tasks 2003"" /GroupName:""Scheduled Tasks"" /GroupClass:""Task"" "

EcmScriptRuntime.CmdExecute  strCommand & " > " & chr(34) & strParser & chr(34) & " 2>&1", 120

No Events found!

Top