Advertisement
joaociocca

Untitled

Aug 27th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. While ($reprocessa -notmatch '(S|N)') {
  2.     $reprocessa = (Read-Host -Prompt "1 - Reprocessa?(S/N/?)").ToUpper()
  3.     If ($reprocessa -eq '?') {
  4.         "Display help here"
  5.     } If ($reprocessa -notmatch '(S|N|\?)') {
  6.         $Reprocesa = 'N'
  7.     }
  8. }
  9. While ($revalida -notmatch '(S|N)') {
  10.     $revalida = Read-Host -Prompt "2 - Revalida? (S/N/?)"
  11.     $revalida = $revalida.ToUpper()
  12.     If ($revalida -eq '?') {
  13.         "Display help here"
  14.     } If ($revalida -notmatch '(S|N|\?)') {
  15.         $Revalida = 'N'
  16.     }
  17. }
  18. While ($ios -notmatch '(I|S)') {
  19.     $ios = Read-Host -Prompt "3 - Incluir ou Substituir? (I/S/?)"
  20.     $ios = $ios.ToUpper()
  21.     If ($ios -eq '?') {
  22.         "Display help here"
  23.     } If ($ios -notmatch '(I|S|\?)') {
  24.         $ios = 'I'
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement