QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Richard on August 09, 2020, 08:39:43 pm

Title: How to ... In program save cmd.exe screen to text file
Post by: Richard 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?
Title: Re: How to ... In program save cmd.exe screen to text file
Post by: SMcNeill on August 09, 2020, 10:54:10 pm
https://www.windowscentral.com/how-save-command-output-file-using-command-prompt-or-powershell

Is the above what you’re looking for?
Title: Re: How to ... In program save cmd.exe screen to text file
Post by: Richard 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.")