Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function Get-AllCaps
  2. {
  3. param(
  4. [char[]]$InputObject
  5. )
  6.  
  7. If($InputObject.count -eq 1)
  8. {
  9. Write-Output $InputObject[0].ToString().ToUpper()
  10. Write-Output $InputObject[0].ToString().ToLower()
  11. }
  12. else
  13. {
  14. $cases = Get-AllCaps $InputObject[1..$InputObject.Count]
  15.  
  16. foreach($char in ( Get-AllCaps $InputObject[0] ) )
  17. {
  18. foreach($line in $cases)
  19. {
  20. Write-Output ($char + $line)
  21. }
  22. }
  23. }
  24. }
  25.  
  26. Get-AllCaps exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement