【发布时间】:2019-02-25 15:22:38
【问题描述】:
如何在powershell中运行cmd命令?我在 cmd 中有这个命令:
licenseassistant /request:"C\User\temp" /batch
如何在 powershell 中做到这一点?
【问题讨论】:
-
只需在 powershell 广告中运行完全相同的命令就可以了
标签: powershell cmd
如何在powershell中运行cmd命令?我在 cmd 中有这个命令:
licenseassistant /request:"C\User\temp" /batch
如何在 powershell 中做到这一点?
【问题讨论】:
标签: powershell cmd
在 PowerShell 中,我经常使用 cmd /c 。
因此你应该能够运行:
cmd /c licenseassistant /request:"C\User\temp" /batch
【讨论】: