windows – 通过PowerShell运行.cmd文件
发布时间:2020-05-22 16:42:36 所属栏目:Windows 来源:互联网
导读:我试图使用PowerShell在远程服务器上运行.cmd文件。 在我的.ps1脚本中,我试过这个: C:MyDirectoryMyCommand.cmd 它导致此错误: C:MyDirectoryMyCommand.cmd is not recognized as the name of a cmdlet,function, script file, or operable progra
|
我试图使用PowerShell在远程服务器上运行.cmd文件。 在我的.ps1脚本中,我试过这个: C:MyDirectoryMyCommand.cmd 它导致此错误: C:MyDirectoryMyCommand.cmd is not recognized as the name of a cmdlet,function,script file,or operable program. 和这个 Invoke-Command C:MyDirectoryMyCommand.cmd 导致此错误: Invoke-Command : Parameter set cannot be resolved using the specified named parameters. 我不需要将任何参数传递给PowerShell脚本。我正在寻找的正确语法是什么? invoke-item将查找文件类型的默认处理程序并告诉它运行它。它与在资源管理器中双击文件或使用start.exe基本相同。 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- pyshark无法在Windows 7(python)上捕获数据包
- haskell – 用于Windows的Linux主机上的GHC交叉编译源代码
- Windows Phone – 在Windows Phone 8中设置广告
- xaml – Wrap TextBlock的最大行数
- 在Windows 10中,我们如何确定窗口所属的虚拟桌面?
- windows-installer – installshield和windowsinstaller之间
- 获取Windows代理用户名/密码
- 将存储数据从一个Azure帐户复制到另一个
- 在windows上vs2017 编译webrtc
- Shared Event-loop for Same-Origin Windows(译)
