How to launch an app from a minimised Batch File so that it is in focus?

Solution 1:

It seems like Windows has no built in method for starting a program with focus.

Luckily there are quite a few different options:

Powershell

https://stackoverflow.com/questions/42566799/how-to-bring-focus-to-window-by-process-name

Auto HotKey

https://social.technet.microsoft.com/Forums/en-US/3f825794-2c86-427a-b675-8936f2880a79/switch-window-focus-using-a-batch-filecmd?forum=win10itprogeneral

SendKeys.bat

https://stackoverflow.com/questions/35988863/using-command-line-batch-to-switch-to-focus-on-app

VBScript

https://stackoverflow.com/questions/8266840/focus-a-batch-started-application