在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) 在 System.Diagnostics.Process.Start(ProcessStartInfo startInfo) 在 Microsoft.PowerToys.Settings.UI.ViewModels.CmdNotFoundViewModel.RunPowerShellScript(字符串 powershellExecutable,字符串 powershellArguments,布尔 hidePowerShellWindow)
我试图“找不到命令”,因为我试图弄清楚文件是否已损坏,@ucked up,或者是这样或那样。然后它回复了这条消息。
“System.ComponentModel.Win32Exception (2):尝试使用工作目录“C:\Program Files\PowerToys”启动进程“pwsh.exe”时发生错误。系统找不到指定的文件。 在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) 在 System.Diagnostics.Process.Start(ProcessStartInfo startInfo) 在 Microsoft.PowerToys.Settings.UI.ViewModels.CmdNotFoundViewModel.RunPowerShellScript(String powershellExecutable, String powershellArguments, Boolean hidePowerShellWindow)PowerShell 7.4 或更高版本未检测到。安装说明可在 https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows”
找到我对编程不太了解