gpt4 book ai didi

powershell - Powershell:与x86 powershell/ise一起运行的脚本

转载 作者:行者123 更新时间:2023-12-03 00:53:34 32 4
gpt4 key购买 nike

我创建的脚本使用了组件,这些组件仅在32位版本的Powershell中可用。

默认情况下,Windows使用Powershell x64执行脚本,这会导致一些错误。

是一种在脚本开头设置值以强制Windows使用Powershellx86而不是x64的方法吗?

例:

using powershell(x86).exe

scriptblock

谢谢

最佳答案

您不能只启动“powershell(x86).exe”文件吗?

%SystemRoot%\ syswow64 \ WindowsPowerShell \ v1.0 \ powershell.exe

/弗雷德里克

关于powershell - Powershell:与x86 powershell/ise一起运行的脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15269176/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com