windows – 通过PowerShell运行.cmd文件
发布时间:2020-09-01 17:26:22 所属栏目: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基本相同。 (编辑:南阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 无法找到MSVCP120D.DLL或0x00007启动错误的解决方法
- Windows Filtering Platform用户模式或内核模式?
- winapi – 我可以从DLL中删除数字签名吗?
- windows-installer – installshield和windowsinstaller之间
- WPF:xaml中的权力
- api-ms-win-crt-runtime-|1-1-0.dll丢失的解决方法
- win7运行mapreduce报错Could not locate executable nullbi
- api – Windows Phone应用程序中的捐赠
- 什么是“Microsoft C例外”?
- .net – 在Windows应用程序中格式化标签内的文本
推荐文章
站长推荐
- 在WPF中的所有Windows中应用按钮样式
- windows-phone-8 – 适用于Windows Phone 8的企业
- 值为NULL的列是否会影响Microsoft SQL Server的性
- 标签为Windows的SSH工具?
- winapi – Win32 No-MFC中的消息映射
- windows平台xFsRedir程序更新(虚拟磁盘镜像存储
- 使用Windows Power Management API调暗监视器
- windows-phone-8 – 使用WNS for windows phone
- .net – 为什么我无法在2.0.0.0播放器框架中重用
- DLL符号_FooBar @ 16中的数字16代表什么?
热点阅读
