Hey guys
I'm startin to learn Powershell and have troubles starting another Program with Powershell.
When I start the following command everything works well:
LogParser -i:csv -nSkipLines:4 "SELECT Sender-Address, Recipient-Address, Message-Subject, [#Fields: date-time] as date-time FROM 'E:\Exchange Message Tracking Logs\*20120410*' WHERE sender-address LIKE '%net%'" -o:DATAGRID
Ok here comes my script:
Param ( [parameter(Mandatory=$true)] [String] $idate )&'C:\Program Files (x86)\Log Parser 2.2\logparser.exe' "SELECT Sender-Address, Recipient-Address, Message-Subject, [#Fields:date-time] as date-time FROM 'E:\Exchange Message Tracking Logs\*$idate*' WHERE sender-address LIKE '%net%'" '-o:DATAGRID'
Obvioulsy it throws an error, but can someone explain to me how I have to set those special characters?
bump. Please help
and the error is?