windows – 通过PowerShell运行.cmd文件
发布时间:2020-09-01 17:26:52 所属栏目: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基本相同。 (编辑:甘南站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows Azure表存储行大小限制小于规定的1MB
- WiX – 通过检查修订来防止降级
- windows – 如何成功更改执行策略并启用PowerShell脚本的执
- 什么是“Microsoft C例外”?
- winapi – 我可以从DLL中删除数字签名吗?
- windows-server-2008 – Windows Server 2008 R2打印服务器
- win10上部署Hadoop-2.7.3——非Cygwin、非虚拟机
- 如何正确创建一个nim / nimrod windows dll
- windows – procdump -t – 如何在进程终止时转储 – 使用?
- Windows Containers 大冒险: 优化计划(Dockerfile)
推荐文章
站长推荐
- windows-phone-7 – Caliburn Micro中的墓碑
- NodeJS、NPM安装配置步骤(windows版本) 以及环境
- adodb – Windows脚本宿主(jscript):我如何下载
- 值为NULL的列是否会影响Microsoft SQL Server的性
- 标签为Windows的SSH工具?
- Windows/Linux命令查看文件MD5,SHA1,SHA256 文件
- windows-7 – 在windows7中设置JRE路径的要求,如
- Windows Python:为什么第一个打开的窗口未显示为
- 飞溅屏幕 – 通用窗口10个应用程序的Splash屏幕
- node-ffi模块的安装以及基于electron生成windows
热点阅读