Pipe output of command-line program without functionality?
Moderator: DosItHelp
-
- Posts: 1
- Joined: 19 Jan 2014 17:22
Pipe output of command-line program without functionality?
I wish to use a batch file to start a command-line program and have its output piped to file. Using > won't work because although it's command-line based, it doesn't support that. Is this possible?
Re: Pipe output of command-line program without functionalit
Would help to know the name of the program.
-
- Expert
- Posts: 1167
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Pipe output of command-line program without functionalit
If the program runs and outputs on the command line but a regular > redirect isn't working, try a 2> redirect instead. As in
Code: Select all
whatever.exe 2>output.txt