Guest User

Untitled

a guest
Mar 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # UppercaseClipboard.ps1
  2. # Use: retrieves text from clipboard, converts it to all uppercase, and stores the changed value back into the clipboard.
  3.  
  4. #Clears all current content on screen.
  5. clear
  6.  
  7. # Title Text
  8. echo "UppercaseClipboard"
  9. echo "By Trevor D. Brown `n"
  10.  
  11. # Gets the clipboard content.
  12. $in = Get-Clipboard
  13.  
  14. # Display provided text.
  15. echo "Current Text: $in"
  16.  
  17. #Display convert text, and convert to uppercase.
  18. echo "Converting text to all uppercase..."
  19. $in = $in.ToUpper()
  20. echo "Done! `n"
  21.  
  22. echo "Uppercased Text: $in"
  23.  
  24. echo "Copying to clipboard... `n"
  25. Set-Clipboard -Value $in
  26.  
  27. echo "Done! `n"
  28.  
  29. echo "Process complete!"
Add Comment
Please, Sign In to add comment