View previous topic :: View next topic |
Author |
Message |
Corridor
Joined: 21 Mar 2006 Posts: 1
|
Posted: Tue Mar 21, 2006 4:51 pm Post subject: Print output |
|
|
Is there a way to set the IDE to print what is shown when it runs the console? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Wed Mar 22, 2006 1:07 am Post subject: Print output |
|
|
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...
releasewin32prog.exe > prog.res
|
|
Back to top |
|
|
|