For example, if you want to send a directory listing to the printer, you would type
DIR > PRN and the listing would appear on the printed page instead of the screen.
Likewise, if you want the directory of the default drive to be redirected to a file on the
disk in the B drive, you’d type DIR > B:DIRFILE and a new file called DIRFILE would
be created on drive B and it would contain a listing of the directory.