Batch Redirection


Redirections

To redirect a file's contents into a command, try:

: < C:\path\to\file

To redirect a command's STDOUT into a file, try:

: > C:\path\to\file

Use >> instead to append to a file, as opposed to overwriting.

To redirect output into a specific handle, try:

: >&2

To redirect a specific handle into input, try:

: <&3


CategoryRicottone

Batch/Redirection (last edited 2023-01-30 03:06:43 by DominicRicottone)