December 6, 2019 at 10:03 am
Hi,
I want to load a log so that I can see which bat file failed, and restart from that point. I'm struggling a bit with this, can anyone point me in the right direction? So far I have got:
$csv = Import-Csv E:\Backup\Schdule_log.csv
$csv
$Failed = $csv.Batfile | Where-Object {$csv.Result -eq 'Failed'}
But $Failed is returning all of the files, so my where clause must be wrong
Thanks
December 7, 2019 at 10:10 am
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
December 7, 2019 at 10:44 am
without having sample data its hard to tell.
but try
$Failed = $csv | Where-Object {$csv.Result -eq 'Failed'}|select -property Batfile
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply