自建which 命令

1
@ for %%e in (%PATHEXT%) do @ for %%i in (%1%%e) do @ if NOT "%%~$PATH:i" == "" echo %%~$PATH:i

新建 “which.cmd” 放入–> C:\Windows\System32 中即可使用

内置命令:

1
where 命令工具说明可用 where /?  查询用法。