hello
i have a script
#begin script
......
.\function1.ps1
.\function2.ps1
.\function3.ps1
#End script
is it possible to prompt the user to ask him if he want to run function1 or not...
thank you
Technology Tips and News
hello
i have a script
#begin script
......
.\function1.ps1
.\function2.ps1
.\function3.ps1
#End script
is it possible to prompt the user to ask him if he want to run function1 or not...
thank you
Hi Zizou,
To create powershell popup, you can also refer to the script below:
$wshell = New-Object -ComObject Wscript.Shell -ErrorAction Stop $judge = $wshell.Popup("Do you want to run this script",0,"YesOrNo",48+4) if($judge -eq 6){ .\..ps1} if($judge -eq 7){ Write-Host "do nothing" }
To get more detailed information about the parameters in popup, please refer to this article:
http://powershell.org/wp/2013/04/29/powershell-popup/
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang