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

Windows XP and DOS

Start a Program Minimized or Maximized via a Batch File

SUMMARY: Force a program executed by a batch file to minimize to the Windows Taskbar or appear full-screen.Bookmark and Share

In some instances, when creating a batch file in Windows XP, you may wish to execute a program and force it to display as a full-screen window. Perhaps the application is displaying information that you or the batch file's intended user needs to see, and by opening the window normally the information may not be visible due to a smaller window size.

Conversely, a batch file may need to run an application that its user normally should not need to see. Perhaps an application needs to perform networking or file maintenance operations, and seeing its output may be confusing. If so, the batch file can force an application to start minimized to the Windows XP Taskbar.

To run an application from a batch file and control its window size, use the start command with one of the following options before the name of the application you want to execute:

/max : Starts a window maximized (full-screen)

/min : Starts a window minimized to the Windows Taskbar

For example, assume you have an application called reconnect.exe, a theoretical Windows application that reconnects file shares. This application opens a window, performing networking operations and displaying debugging results, and then closes. The following command in a batch file would run this program minimized so as to cause less distraction for its users:

start /min reconnect

Note that some applications will ignore the /min and /max command-line options and open as a normal-sized window.

 

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:
Microsoft Internet Explorer 8Microsoft Publisher 2007Digital Waterfall Photography



Access a Favorite Website from Anywhere with a Keyboard ShortcutTwo Ways to Move a Page[MODIFIED] Avoid Water Vapor

Follow Us On Twitter
 
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 'Get Tips!'.
 



( 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 - 2009 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