Windows – 通过PowerShell运行.cmd文件
发布时间:2020-12-13 20:26:10 所属栏目:Windows 来源:网络整理
导读:我试图在PowerShell的远程服务器上运行一个.cmd文件. 在我的ps1脚本中,我已经尝试过: C:MyDirectoryMyCommand.cmd 导致此错误: C:MyDirectoryMyCommand.cmd is not recognized as the name of a cmdlet,function,script file,or operable program. 和
我试图在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下用owncloud搭建私有云
- windows – 没有PgAdmin3的PostgreSQL win32 / 64无窗口安装
- windows-store-apps – 集成bing map的windows store app在
- 如何使用Azure挂载大型NTFS卷?
- windows – 使用WinForm时激活上下文丢失了?
- WiX MajorUpgrade的Windows服务,保留.config并避免重新启动
- [问八系列] Windows 8 开发 (4): 分离检视型应用程序 Part
- 从非交互式进程(Windows服务,计划任务等)在WinServer 2008中
- windows-server-2003 – 我必须为RDP客户端安装所有可能的打
- 在Windows 7上为Git生成SSH密钥
推荐文章
站长推荐
热点阅读