windows中查找某个命令的路径(类似于linux中的which)
来源:互联网 发布:xbox one 手柄驱动mac 编辑:程序博客网 时间:2024/05/16 06:35
本篇文章转载自:http://www.open-open.com/home/space-4097-do-blog-id-11710.html
Various.
where
is a direct equivalent:C:\Users\Joey>where cmdC:\Windows\System32\cmd.exe
Note that in PowerShell
where
itself is an alias forWhere-Object
, thus you need to usewhere.exe
in PowerShell.In
cmd
you can also usefor
:C:\Users\Joey>for %x in (powershell.exe) do @echo %~$PATH:xC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
In PowerShell you have
Get-Command
and its aliasgcm
which does the same if you pass an argument (but also works for aliases, cmdlets and functions in PowerShell):PS C:\Users\Joey> Get-Command whereCommandType Name Definition----------- ---- ----------Alias where Where-ObjectApplication where.exe C:\Windows\system32\where.exe
The first returned command is the one that would be executed.
0 0
- windows中查找某个命令的路径(类似于linux中的which)
- 在某个目录下的所有文件中查找包含某个字符串的Windows命令
- 在某个目录下的所有文件中查找包含某个字符串的Windows命令
- 在某个目录下的所有文件中查找包含某个字符串的Windows命令
- linux文件查找命令 which
- linux中Find、whereis、locate、which查找文件命令总结
- linux中Find、whereis、locate、which查找文件命令总结
- linux中Find、whereis、locate、which查找文件命令详解
- linux中查找命令find、locate、whereis、which、type区别
- linux中查找命令find、locate、whereis、which、type区别
- Windows的Which命令
- Linux中的find的命令 不在某路径查找
- linux命令--查找命令(find、locate、whereis、which、type)
- Windows中,文件所在路径查找命令
- Linux下查找某个命令的源代码
- Linux的五个查找命令:find,locate,whereis,which,type
- Linux的五个查找命令:find,locate,whereis,which,type
- Linux的五个查找命令:find,locate,whereis,which,type
- eclipse直接生成so
- 比较Fink, macports 和 homebrew
- 预编译命令常识
- 加密xmlrpc 多线程服务器
- 开始新的旅程
- windows中查找某个命令的路径(类似于linux中的which)
- 矩阵覆盖
- 多款VPN测评整理(免费&付费)
- IOS 9 https限制
- 对测试理论课的认识
- 02:视图与窗口的基础
- ssh免输入密码登陆或上传
- First-chance exception at 0x000007FE86D99B3C in XXXX.exe: 0xC0000005: Access violation reading locat
- WINDOW环境php做定时任务