繁体   English   中英

如何运行与 PowerShell 别名同名的命令?

[英]How to run a command with the same name as a PowerShell alias?

我有一些与 PowerShell 别名同名的命令行实用程序。 例如whereWhere-Object的别名)会影响 Windows 附带的where工具。

在 bash 中,我可以使用\command (如\wherecommand where )跳过别名。 PowerShell 中是否有类似的东西?

您可以在调用时添加扩展:

& where.exe "arguments"

或指定完整路径。

请参见About_Command_Precedence

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM