38
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

which command相当をWindowsで実行する方法

Posted at

やりたいこと

Linuxでのwhich command相当をWindowsで実行したい。

結論

where.exe <コマンド>を実行する。

which相当を実施する方法は複数ある(特にPowerShell)が、
where.exeはPowerShellとCommand Promptで同一コマンドで実行できるのが良い。

実行例

PowerShell
PS C:\Users> where.exe ping
C:\Windows\System32\PING.EXE
PS C:\Users>
Command-Prompt
C:\Users>where.exe ping
C:\Windows\System32\PING.EXE

C:\Users>

参考

Is there an equivalent of 'which' on the Windows command line? - Stack Overflow
http://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-the-windows-command-line

38
15
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?