Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- outputLines = somecommand.exe 2>&1
- if ($outputLines -match 'Result' -match 'Failed')
- {
- echo $outputLines > C:\Scripts\Failure.log
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement