setting command prompt width and height?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohaakilla51
    New Member
    • Jul 2007
    • 39

    setting command prompt width and height?

    OK guys, so How do you set the width and the height of the Command Prompt from within C++? Is it possible? I thought that maybe system.width or something like that, but it didn't work. So then I googled and All I found was how to do it manually (By going into properties...).

    So does anyone know how to do that?
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    It is not straightforward . Obviously, the concept of a command prompt is windows specific, while C++ is non OS specific. That should tell you something. You are going to jump into windows specific APIs to deal with the command prompt. Furthermore, realize that the command prompt that appears is created by the operating system. Your code does not create it. Therefore, you will have to figure out the windows API code that allows you to seize control of the command prompt window and consequently adjust its size.

    Have fun googling.

    Comment

    • mohaakilla51
      New Member
      • Jul 2007
      • 39

      #3
      actually, I think the default size is just fine after all :)

      Comment

      Working...