标签:which
which.bat
@echo off echo %~dp$PATH:1 @echo on
使用
C:\Users\Administrator>which ssh.exe C:\Windows\System32\OpenSSH\ C:\Users\Administrator>