Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS - command line screen 2

Status
Not open for further replies.

rob444

Programmer
Nov 5, 2002
633
NL
Does anyone know how to size the dos command line screen to 25 lines and 80 chars per line when it is full screen?

I need it to run an old dos program full screen with only 25 lines in stead of 50.

Thanks,
Rob.
 
You can change the dimensions with the following commands:
mode con lines=XX
mode con columns=XX
 
Start, Run, %SystemRoot%\system32\cmd.exe /k mode con cols=80 lines=25

Also, if you create a .bat file to call your application, you can then edit its properties to include screen dimensions.

Or, use command instead of cmd.exe, and hit Alt-Enter when the command session starts.
 
Oopsie, little mistake by me: to edit the columns, do what Bill said: cols=XX instead of columns=XX. I'm not on an english computer so couldn't try it out :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top