Full screen through batch command?

15,508

Solution 1

In Windows XP, you need to start your program maximized (but not full screen) via "start /max" as follows:

start "Winow Title" /MAX "C:\batches\myfile.bat"

This command would be inside your original batch file, and call the real bath file.

I don't think there's a way to change the full screen-ness of an executing "cmd" command from within a batch file absent someone writing a special app to do so by emulating sending Alt+Enter to the parent process.

In Windows 7 (and probably Vista) you must run inside XP virtual machine for full screen mode.

Solution 2

There is none. You can write a small program doing so for you, though. There is the SetConsoleDisplayMode function.

Share:
15,508
Vishwanath Dalvi
Author by

Vishwanath Dalvi

SOreadytohelp about me box is kept "", intentionally.

Updated on June 14, 2022

Comments

  • Vishwanath Dalvi
    Vishwanath Dalvi almost 2 years

    I have a batch script under Windows. When anyone will click on that script I want the command window to become full screen like we do by keyboard shortcut [Alt+Enter].

    Can it be done automatically using any command in batch file?

  • Vishwanath Dalvi
    Vishwanath Dalvi about 13 years
    I want it in batch file .. not in vc++
  • Rich
    Rich about 13 years
    That will only start it maximized, though, not full-screen.
  • DVK
    DVK about 13 years
    @Joey - Yikes. Me blind (I started my full screen app and didn't notice the title bar. DUH).