#navi(../)
* PATHの通ったコマンドを探す・where [#dd3c7005]
UNIXのwhichコマンドと同等の動作をするコマンドを以下に記します。

#contents
#htmlinsertpcsp(win-top.html,win-sp.html)

* 関連記事 [#cacc713d]
-[[PowerShellでPATHの通ったコマンドを探す・Get-Command>PowerShell/PowerShellでPATHの通ったコマンドを探す・Get-Command]]

* whereコマンド [#n84307b1]
whereコマンドの構文は以下の通りです。
 where コマンド
whereコマンドを使って幾つかコマンドを検索した例を以下に記します。

** メモ帳(notepad.exe)を探す [#w09ea647]
whereコマンドを使ってNotepad.exeを検索した結果は以下の通りです。
 C:\Users\sakura>where notepad.exe
 C:\Windows\System32\notepad.exe
 C:\Windows\notepad.exe
 
 C:\Users\sakura>where notepad
 C:\Windows\System32\notepad.exe
 C:\Windows\notepad.exe

拡張子を省略しても検索できていることが確認できます。

以上、WindowsのコマンドプロンプトでPATHが通ったコマンドを探す方法でした。

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS