PowerShell: Quick 1-Liner to Locate Path to Executable

PS C:\Users\tester> (get-command robocopy.exe) | select Definition

Definition
----------
C:\Program Files (x86)\Windows Resource Kits\Tools\robocopy.exe
C:\Windows\system32\Robocopy.exe

Leave a Reply

Your email address will not be published. Required fields are marked *