腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
powershell
从
cmd
运行
、
在文本文件List.txt中,我想删除引号并保存为ListF.txt(Get-Content List.txt) | ForEach-Object{ $_ -replace '"','' } | Set-Content ListF.txt
powershell
.exe -command "{(Get-Content
浏览 24
提问于2020-05-24
得票数 0
1
回答
为什么同一个
powershell
命令在
powershell
控制台上
运行
,而不使用os.system?
、
、
因为我在Windows上工作,所以我需要将命令传递到
powershell
控制台。如果
从
powershell
控制台
运行
,下面的命令可以工作所以我在pythonX:/myarch""&'C:\\\\Program Files\\\\7-Zip\\\\7z' a -mx=0
浏览 0
提问于2021-09-07
得票数 0
回答已采纳
1
回答
从
cmd
运行
powershell
脚本时不显示exe输出
我有一个
运行
.exe工具的
powershell
脚本。 & tool.exe 如果我
从
cmd
控制台
运行
脚本,exe输出不会通过
cmd
控制台写入... C:\>
powershell
.\script.ps1 Insead,如果我
从
Powershell
控制台
运行
脚本,一切都是正常的。 您知道如何
从
cmd
控制台查看exe输出吗?
浏览 8
提问于2019-05-06
得票数 0
1
回答
从
pg_dump导入的Postgres抛出不存在字符的错误:"ÿ_“或”ÿ_“附近的语法错误
、
、
The Issue
从
本地PostgreSQL实例下载数据,使用pg_dump
从
DB1完整命令下载数据: pg_dump -U {user} -d {sourceDB} -t {sourceTable}
浏览 7
提问于2021-08-25
得票数 1
1
回答
从
cmd
运行
powershell
命令
、
、
我想从
cmd
运行
一个
PowerShell
命令,因为我需要从我的Python脚本安装。如下所示:choco = sp.Popen(['
powershell
', 'Start-Process -verb runas
powershell
',我想
运行
Chocolatey install命令。我不想
运行
PowerShell
脚本。我只想
运行
install
浏览 7
提问于2019-11-21
得票数 0
2
回答
如何在
Powershell
(Windows终端)中
运行
特定命令打开新选项卡?
我想要的是打开一个新的选项卡,其中包含
Powershell
并
运行
一个特定的命令(在我的例子中,"npm“)。我以为这会成功,但是,它带来了一个错误, [error 0x80070002 when launching
浏览 3
提问于2021-04-19
得票数 17
回答已采纳
2
回答
从
cmd
运行
Powershell
脚本
我正在尝试使用一个简单的端口扫描器作为
PowerShell
一行程序,如下所示:它在
PowerShell
窗口中工作得很好。但是,如果我尝试
从
Windows命令窗口(
CMD
)启动它,则会收到以下错误消息:
浏览 1
提问于2020-08-16
得票数 1
1
回答
从
CMD
运行
Powershell
7
我有一个.bat脚本,它作为Admin
运行
Powershell
,然后在与.bat文件相同的文件夹中
运行
Powershell
脚本。这是非常好的: /C
powershell
"Set-Location -PSPath '%CD%';$Path = (Get-Location).Path;Set-Location ~;Start
powershell
-Verb RunAs -Args "-ExecutionPolicy ByPass“Set
浏览 14
提问于2022-01-25
得票数 -4
2
回答
如何使用
CMD
shell获取windows用户语言列表?
、
我无法使用
CMD
行命令获得windows用户语言列表。因此,在那些受限的PC上,我只有
CMD
外壳来解决这个问题,即能够删除用户不需要的额外语言。
浏览 26
提问于2020-12-15
得票数 1
2
回答
从
C#控制台应用程序
运行
CMD
?
、
如何
从
我的C#控制台应用程序
运行
CMD
.EXE?就像在
Powershell
中一样,你可以通过输入"
cmd
“来
运行
cmd
.exe 编辑:打开
Powershell
。键入"
cmd
“。这就是我想要的。我希望它能让用户在我的命令行C#应用程序中输入"
cmd
“时,在同一个窗口中
运行
CMD
.EXE。这基本上与在
Powershell
中输入
CM
浏览 7
提问于2010-12-03
得票数 2
1
回答
从
CMD
运行
powershell
脚本不加载模块
、
、
、
activedirectory
powershell
.exe -file "D:\test.ps1" 我还注意到下面的事情,两个
powershell
.exe进程在我执行这个之后
运行
。如果我从一个
powershe
浏览 3
提问于2014-08-15
得票数 0
1
回答
PowerShell
脚本在ISE中
运行
,但不是作为脚本
运行
我希望我可以右击,
运行
PowerShell
,它就可以工作了。 情况:- 我必须经常自动卸载软件。以下命令在
PowerShell
ISE中
运行
良好,但作为PS1脚本(右键单击,使用PS
运行
),它不会在屏幕上输出任何内容。--------------- 7-Zip 19.00 (x64) C:\Program Files\7-Zip\Uninstall.exe 作为脚本
运行
非常感谢您的帮助 附言(<看看我在那里做了什么,我是
PowerS
浏览 24
提问于2020-10-17
得票数 0
2
回答
powershell
中无法识别格式列表
、
、
C:\Windows\system32>
powershell
.exe -Command Get-WmiObject -query "select * from msiscsi_nicconfig where
浏览 2
提问于2015-05-19
得票数 0
5
回答
PowerShell
- Start-Process和Cmdline开关
、
、
我可以很好地
运行
以下代码:start-process $msbuild-wait$msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:当我有 C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
浏览 2
提问于2009-03-16
得票数 84
回答已采纳
1
回答
无法捕获
CMD
的输出
、
、
、
、
尝试在高架模式下打开
CMD
并
运行
powershell
脚本。
powershell
-Command "Start-Process
cmd
\"/k "
PowerShell
-NoProfile -ExecutionPolicy Bypass -file ""C:\WIM_Creation.ps1 ""hello"" V7.0E V9.0A""\" -Verb R
浏览 3
提问于2022-11-04
得票数 1
3
回答
在
powershell
中,更改为
cmd
后,无法通过批处理脚本文件调用bat文件。
、
、
、
但是,当我在
PowerShell
中执行下面的bat文件时,
cmd
后的指令没有执行。我需要调用
cmd
中的setupEnv.bat文件。如果我移除
cmd
,它就会正常工作。但是我想在
cmd
上调用setupEnv.bat,而不是在
PowerShell
中。D:
cmd
echo "Setup Completed" 在调用setupEnv.bat和调用
cmd
之后,它会在<
浏览 1
提问于2017-03-10
得票数 1
回答已采纳
1
回答
如何在Dockerfile入口点执行
PowerShell
脚本并启动.exe?
、
、
我需要在我的Windows-container,中执行Windows-container,和启动nginx.exe之后,所以我在Dockerfile中添加了一个入口点,如下所示: ENTRYPOINT ["
powershell
我是
PowerShell
的诺比..。如何使它正确?
浏览 8
提问于2021-05-25
得票数 1
回答已采纳
1
回答
“找不到文件”只能对
cmd
.exe + args使用Invoke-SCScriptCommand
、
我为Microsoft System Center Virtual Machine Manager制作了一个插件,它通过插件的c#代码调用的
powershell
脚本在主机上执行
powershell
脚本。因为我总是收到一个错误,所以我决定在SCVMM中手动测试它,方法是右键单击主机,然后为可执行文件和export-v -name [name] -path [path] -force - copystate -wait输入
powershell
.exe或
powershell
。奇怪的是,它可以与
cmd
(.exe)
浏览 5
提问于2014-12-16
得票数 1
1
回答
执行xp_cmdshell生成CSV --不喜欢查询中的“WHERE”子句
、
我有以下代码:GO SET @month = 'October2021' , @datadate NVARCHAR(255) = 'WHERE DataMonth = ''' +@month+ '''' SET @
cmd
ConvertTo-Csv -N
浏览 3
提问于2022-01-17
得票数 -2
回答已采纳
1
回答
从
dos命令文件启动的调试.ps1文件
、
我想
运行
Powershell
脚本(.ps1)在虚拟机中部署Biztalk2009工件。
powershell
-command "& {get-content %1 | .所以我以如下方式
运行
dos命令文件: install.
cmd
dev.t
浏览 0
提问于2011-03-21
得票数 5
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券