Question about using PowerShell Select-String, exiftool(-k)
问题 In a PowerShell script I'm trying to filter the output of the exiftool(-k).exe command below, using Select-String . I've tried numerous permutations, but none work, and I always see the unfiltered output. What do I need to do to filter the output of this command? Start-Process -FilePath "C:\PowerShell\exiftool(-k).exe" -ArgumentList test.jpg | Select-String -pattern 'GPS' -SimpleMatch 回答1: The naming is inconvenient. Rename it to exiftool.exe and run it without start-process. rename-item