Silverfrost Forums

Welcome to our forums

Print output

21 Mar 2006 3:51 #591

Is there a way to set the IDE to print what is shown when it runs the console?

22 Mar 2006 12:07 #595

Trevor

There is no direct way of doing this and using redirection in the 'Launch arguments' of the project properties does not work.

You can either open a Command Prompt window and use redirection after changing to the output folder or you can add code to your program to copy the output to a file.

For the first option:

  1. Find the Command Prompt or MS-DOS Prompt from the Start button and Programs.

  2. Use CD to change to the folder that contains your executable prog.exe (say).

  3. Run the command 'prog.exe > prog.res'

If you do this often then you should consider putting the steps into a batch file. You could then run the batch file as a command from Plato3 and assign an accelerator key to it. (Put the batch file in the root project folder. See the Tools menu, then Commands)

The batch file (Print.bat say) could contain something like...

release\win32\prog.exe > prog.res

Please login to reply.