0

I would like to know - how to start an application Maximized using a .bat file. On Windows 10 operating system. Thanks!

3
  • I haven't found a way to do this with standard Windows commands, whether with CMD, VBS or PS scripts. What does work is the (freeware) extended CMD replacement TCC-LE, which has many enhancements, including the /fs option to the start command. Note that if an application needs quoting then it must be preceded by a quoted window title (which can be an empty string), eg start "" "Application Name.exe" - this applies to both CMD and TCC-LE. Commented Sep 27, 2018 at 14:05
  • In general you can't, as not all applications actually have (support) a full screen mode, and those that do have different command line switches to do so. Commented Sep 27, 2018 at 20:42
  • If there is really no way to implement the full screen of application through these files, you can try to change the registry. Commented Sep 28, 2018 at 9:57

2 Answers 2

4

Afternoon,

You can use the following to start an application in full screen:

Inside a batch-file put the following, replace notepad.exe with the application.

start /max notepad.exe

I am unsure if this will be applicable to all applications but I have tested with notepad and MS Word.

1
  • 3
    This starts an application maximised, not full-screen, as the questioner wants. Commented Sep 27, 2018 at 13:28
0

::to minimized

/min

::To full screen as someone asked do this ::this will press f11 to full screen or any key you need ::add a delay if happens to fast here I add 1 sec

timeout 1> Null

::you may want change directory to point to location of file you will create below

cd "%keyboardpress\fileLocation%"

::add this to bat file

wscript /nologo keyboardpress.vbs

::then open a note pad add code below and name and save it as well naturally in this example as keyboardpress.vbs

set wShell = createObject("wscript.shell") wShell.sendKeys "{F11}"

::Note: this can be used in this way a well wShell.sendKeys "a {enter}"

::this will type "a" key then the "enter" key,

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.