我需要在 PowerShell 中有一个弹出窗口,其中包含带有是和否按钮的信息标记图标。
我目前的代码如下:
$wshell = New-Object -ComObject Wscript.Shell
$answer = $wshell.Popup("Do you want to continue?",0,"Alert",0x4)
if($answer -eq 7){exit}
Run Code Online (Sandbox Code Playgroud)
只有是或否部分。我也需要一个图标。