Author Topic: How to ... In program save cmd.exe screen to text file  (Read 3211 times)

0 Members and 1 Guest are viewing this topic.

Offline Richard

  • Seasoned Forum Regular
  • Posts: 364
    • View Profile
How to ... In program save cmd.exe screen to text file
« on: August 09, 2020, 08:39:43 pm »
In a QB64 program - how to save ALL of what the    cmd.exe     screen shows to a text file - there may be many more lines generated than fit in the visible cmd.exe window.

Is there a file in    Windows 10 x64    that I can access that does this?
« Last Edit: August 09, 2020, 08:57:08 pm by Richard »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Richard

  • Seasoned Forum Regular
  • Posts: 364
    • View Profile
Re: How to ... In program save cmd.exe screen to text file
« Reply #2 on: August 10, 2020, 12:08:55 am »
Thanks Steve

Appears to work as wanted for me - even for stderr (eg "The system cannot find the file specified." error) as well as stdout (eg "1 file(s) copied.")