ROT13 — Encode or decode text with ROT13.

Syntax:
ROT13 /A:attribs /CP:n /H /N /P /S filename…

/A:attribsattributes mask; valid flags are -ACEHIORS
/CP:ninterpret non-Unicode input text using code page n
/Hdisplay filenames
/Ppage output
/Ndisable features
/Ssearch in subdirectories for matching files
Range options are also supported.

If standard input (stdin) is redirected, ROT13 will read from stdin before any filenames specified on the command line. If no filenames are specified, then ROT13 will read from stdin whether it is redirected or not. Filenames may include wildcards and directory aliases. You can search into subdirectories for matching files with /S. @File lists and internet files are supported. You may also specify CLIP: to read from the clipboard.

If you want to pipe to ROT13, remember that pipes open a new shell. To pipe to a plugin command, you must either ensure that the plugin is loaded in the transient shell, e.g. by installing the .DLL in the shell’s .DLL directory; or else use temporary files or an in-process pipe.

/N disables features:

/NBdo not write a Byte Order Mark
/NCdisable highlight
/NDdo not search into hidden directories; only useful with /S
/NFsuppress the file-not-found error
/NJdo not search into junctions; only useful with /S
/NZdo not search into system directories; only useful with /S

You can combine these, e.g. /NDJ.

See also: the @ROT13 function, which transforms a string using ROT13.