DOS commands in Pellec

Started by AndruXo, October 15, 2009, 11:42:12 AM

Previous topic - Next topic

AndruXo

Is there some way to execute DOS commands in Pelles C?  For example, to change the color of console text by the command "color 0a"  or something else.
[Project type is "Win32 Console program(*.exe)"]

AlexN

Quote from: AndruXo on October 15, 2009, 11:42:12 AM
Is there some way to execute DOS commands in Pelles C?  For example, to change the color of console text by the command "color 0a"  or something else.
[Project type is "Win32 Console program(*.exe)"]

For this I use a little peace of code, I found years ago.
best regards
Alex ;)

AndruXo

Exactly I need  :), thank you.
However, what about supporting of other dos commands, not just graphics functions.

AlexN

Quote from: AndruXo on October 15, 2009, 02:28:57 PM
Exactly I need  :), thank you.
However, what about supporting of other dos commands, not just graphics functions.
DOS-commands, which are not a part of CMD.EXE or COMMAND.COM, can be executed with the function system("<commandline>") .
best regards
Alex ;)