Expanding Command Prompt

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Expanding Command Prompt

 
0
  #1
Aug 16th, 2008
Is there a system command that I can use with system("x") to expand the prompt the program is in?

Or any other way of doing it, for that matter, I just need to get it to be the size it would be if I told the computer to maximize it, basically, I'm just going for half the screen.
Last edited by Nishinoran; Aug 16th, 2008 at 10:41 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,348
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1461
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Expanding Command Prompt

 
0
  #2
Aug 17th, 2008
This question has been asked and answered millions of times. Click here.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Re: Expanding Command Prompt

 
0
  #3
Aug 18th, 2008
The google search you posted did not have anything related to programming. Do you think I'm an idiot? I googled the question before asking on this forum, and returned nothing, and neither did the search you posted, if it has been asked and answered so many times, why can't you provide the answer quickly, instead of giving me vague information?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 978
Reputation: mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice 
Solved Threads: 208
mitrmkar mitrmkar is offline Offline
Posting Shark

Re: Expanding Command Prompt

 
0
  #4
Aug 18th, 2008
If you are on Windows, then you can use SetConsoleWindowInfo
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Expanding Command Prompt

 
0
  #5
Aug 18th, 2008
Originally Posted by Nishinoran View Post
The google search you posted did not have anything related to programming.
It actually did answer the question AD thought you asked. Which was more than I could do because to me your question doesn't make sense. What does the system() command have to do with the size of the command prompt?


Originally Posted by Nishinoran View Post
Do you think I'm an idiot?
Not necessarily. But when 95% of the new posters here are, you unfortunately fell into that category. But then, if you rephrase your question so we understand what you are looking for, all doubts will be removed.

PS: Are you, maybe, talking about the command window -- not the prompt?
Last edited by WaltP; Aug 18th, 2008 at 2:15 pm.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Re: Expanding Command Prompt

 
0
  #6
Aug 18th, 2008
Sorry if I was a bit rude, I did mean the window, although in my mind the window is basically a prompt, the reason I was asking about the system command is because I was hoping there was a simple DOS command built-in that would allow me to change the window.

If you are on Windows, then you can use SetConsoleWindowInfo
Could you explain the function a little more, I was mainly confused on the parameters needed.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,348
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1461
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Expanding Command Prompt

 
0
  #7
Aug 18th, 2008
A little easier one to use is ShowWindow() Get the first parameter by calling GetConsoleWindow()
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Re: Expanding Command Prompt

 
0
  #8
Aug 19th, 2008
Okay, I got it now, thanks guys! sw maximize is exactly what I needed.
Last edited by Nishinoran; Aug 19th, 2008 at 9:20 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC