Pipe output of command-line program without functionality?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
doshelpplz
Posts: 1
Joined: 19 Jan 2014 17:22

Pipe output of command-line program without functionality?

#1 Post by doshelpplz » 19 Jan 2014 17:28

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?

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Pipe output of command-line program without functionalit

#2 Post by Squashman » 19 Jan 2014 17:45

Would help to know the name of the program.

ShadowThief
Expert
Posts: 1167
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Pipe output of command-line program without functionalit

#3 Post by ShadowThief » 19 Jan 2014 18:05

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

Post Reply