NO

Author Topic: DOS commands in Pellec  (Read 3207 times)

AndruXo

  • Guest
DOS commands in Pellec
« 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)"]

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: DOS commands in Pellec
« Reply #1 on: October 15, 2009, 12:55:37 PM »
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

  • Guest
Re: DOS commands in Pellec
« Reply #2 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.

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: DOS commands in Pellec
« Reply #3 on: October 16, 2009, 07:45:14 AM »
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 ;)