PowerShell运行cmd命令


1.使用.exe扩展名

2.使用 cmd /c ""

3.在 PowerShell v3 中有另一种选择来解决这个问题,只需在命令行的任意位置添加 –% 序列(两个短划线和一个百分号)PowerShell 就不会再去解析剩下的部分

From:http://www.pstips.net/using-windows-powershell-to-run-old-command-line-tools-and-their-weirdest-parameters.html

posted on 2014-06-19 10:04  momingliu11  阅读(1974)  评论(0编辑  收藏  举报