New
#1
How to pipe the output of a command to the printer in Windows 10
I'm at the command line.
I want the output of the "set" command to go directly to my printer. I tried the following:
set | notepad.exe
I expected the output of the set command to become input to the notepad.exe command
which then would print it out. Instead I get a blank notepad screen.
I know the following works:
set > filex
notepad.exe filex
This brings up the filex contents in notepad, which I can then print out.
I would prefer to do it with one command.