Pelles C forum

C language => Beginner questions => Topic started by: AndruXo on October 15, 2009, 11:42:12 AM

Title: DOS commands in Pellec
Post by: 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)"]
Title: Re: DOS commands in Pellec
Post by: AlexN on October 15, 2009, 12:55:37 PM
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.
Title: Re: DOS commands in Pellec
Post by: 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.
Title: Re: DOS commands in Pellec
Post by: AlexN on October 16, 2009, 07:45:14 AM
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>") .