Rob van der Woude's Scripting Pages

Help text for UpCase.cs

(view help text of UpCase.cs as plain text)

UpCase.exe,  Version 2.01
Either rename specified files or render redirected input to all upper case

Usage:    UpCase.exe  filespec  [ /Verbose ]

or:       some_command  |  UpCase.exe

Where:    filespec       the file(s) to be renamed        (wildcards allowed)
          some_command   a command whose output will be rendered to upper case
          /Verbose       displays number of files renamed (requires filespec)

Notes:    Use doublequotes if filespec contains non-alphnumeric characters.
          Return code ("ErrorLevel") equals the number of renamed files.
          Switch may be abbreviated, e.g. /V instead of /Verbose.

Check for redirection by Hans Passant on StackOverflow.com
/questions/3453220/how-to-detect-if-console-in-stdin-has-been-redirected

Written by Rob van der Woude
http://www.robvanderwoude.com

page last uploaded: 2017-03-25, 21:31