CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2002
    Posts
    18

    Question When writing a .bat file, how to output the result to a file?

    Hi, I'm writing a batch file (.bat) which runs under windows...Since I only have a bunch of .exe files and I need to do test on them.
    There are too much output on the screen and I want to store them in a .txt file. How can I do this in a .bat file?
    I checked some tutorial on writing .bat file, but I did not find the answer...is this doable?

    Thanks a lot?

  2. #2
    Join Date
    Mar 2002
    Posts
    350
    you can redirect the output to txt file by adding
    ">> sometxtfile.txt" at the end of each command.

  3. #3
    Join Date
    Apr 2003
    Posts
    4

    Lightbulb

    in the batch file just issue the command "somethin.exe < input > output.txt"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured