Lets keep the channel going ! Please subscribe if this was helpful :)
#Code for first example;
$a = $null;
do{
write-host "Pick from the following options";
write-host "option 1 - ABC";
write-host "option 2 - DEF";
write-host "option 3 - GHI";
write-host "option 4 - JKL";
Write-Host "option 5 - exit";
$input = Read-Host;
switch($input){
1
{
write-host "*************************";
write-host "One";
Get-Process -Name 'chrome'
}
2
{
write-host "*************************";
write-host "Write process name";
$ProcessName = Read-Host;
Get-Process -Name $ProcessName;
}
3
{
write-host "*************************";
write-host "Three";
}
4
{
write-host "*************************";
write-host "Four";
}
5
{
write-host "*************************";
write-host "quitting...";
$a = 9999;
}
}
}while ($a -ne 9999);
In questa pagina del sito puoi guardare il video online Powershell | Case Switch | DO While loop della durata di ore minuti seconda in buona qualità , che l'utente ha caricato InfraFort 01 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 264 volte e gli è piaciuto 4 spettatori. Buona visione!