windows – 通过PowerShell运行.cmd文件
发布时间:2020-09-01 17:23:32 所属栏目: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基本相同。 (编辑:4S站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 为什么没有64位版本的VS2013?
- Windows Azure SDK for C
- .net – 可以按需下载先决条件的好安装程序
- wpf – Windows 8 XAML多列文本
- 在Windows中编写Git命令脚本
- windows-10 – Windows 10移动设备错误:DEP6200
- windows – 用户和内核之间的线程fs段寄存器切换
- windows – ruby win32apistructs(VerQueryValue)
- api-ms-win-crt-runtime-|1-1-0.dll丢失的解决方法
- 在[Windows Subsystem for Linux]中安装perl模块
推荐文章
站长推荐
- winforms – .NET ListView和Windows 7
- windows – ruby win32apistructs(VerQueryValue
- php在windows环境下获得cpu内存实时使用率(推荐)
- 如何在Windows Phone 7系列上获取屏幕尺寸?
- windows-phone-8 – 使用WNS for windows phone
- windows修改PowerShell(命令提示符)默认中文编
- window下强制杀死某个进程用taskkill /pid 进程号
- windows-phone-8.1 – 升级到最新Windows Phone
- windows – 带双引号参数的exec
- windows – PSExec如何以SYSTEM用户身份运行应用
热点阅读