computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,490 tips!

Windows XP and DOS

Change the DOS Prompt Size in a Batch File

SUMMARY: Add or reduce lines or columns to/from a DOS prompt in Windows XP.

Need to create DOS batch files in Windows XP where the prompt size is not the standard 25 lines by 80 columns? Perhaps the batch file needs to display large screens of information and extra lines are needed. Or the batch file may be deployed on a system with a large monitor that can handle 170 columns.

To change the width and height of the current DOS prompt in a batch file, use the mode command with the following syntax:

mode con:cols=COLUMNS lines=LINES

For example, to resize the current DOS prompt to 90x30, use the following command:

mode con:cols=90 lines=30

Note that batch files should execute this command before displaying text as this command will clear the current Windows XP/DOS prompt window.

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 

Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows XP and DOS page.


More in MalekTips:
PuttyMozilla Firefox - Plugins and ExtensionsGoogle Gmail



Display System Menu with Alt key[MODIFIED] View Pages Rendered in Firefox and Internet ExplorerMove the Chat or Labels Section to the Right

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums