Jump to content
  • Advertisement
Sign in to follow this  
plywood

pipelining output

This topic is 3809 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I evoke a console program - call it "foo.exe" from the command line, and it outputs string-based data, is there a DOS command (or a series of batch file commands) to pipeline this string output to a .txt file? For instance, foo.exe takes a single parameter: the name/url of a .qfx file: C:\> foo C:\apps\widget\whatev.qfx The output of which might be: Hello, foo! Today is a lovely day! What I am looking for is a way to simply "automate" foo's output such that it is sent to (and saved to) a Notepad (.txt) file. Would it be *something* as simple as: C:\> foo C:\apps\widget\whatev.qfx | output.txt ?? hopefully I can avoid getting into make files and batch files...

Share this post


Link to post
Share on other sites
Advertisement
There's nothing maybe about it. The right angle bracket (aka greater than) was the redirect output symbol used by DOS, so it was retained by the windows console.

foo > output.txt

foo C:\apps\widget\whatev.qfx > output.txt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!