Welcome to FreeSoftwareServers Confluence Wiki

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

$confirmation = Read-Host "Are you Sure You Want To Proceed [y/n]:"
WHILE ($confirmation -ne 'y') {
    if ($confirmation -eq 'n') {exit}
    $confirmation = Read-Host "Are you Sure You Want To Proceed[y/n]:"
}
ECHO OK

https://stackoverflow.com/questions/24649019/how-to-use-confirm-in-powershell/24649481

  • No labels