How to automatically close an active window with a batch file?

Soldato
Joined
26 Apr 2013
Posts
5,025
Location
Plymouth
The Windows 10 anniversary update broke the startup of an application used in my sound driver suite. It no longer starts with windows, however, it'll start fine if you do it manually. ASUS are aware of the issue but, as of yet, have been unable to fix it. As such, I have had success starting it with a batch file at startup. My batch file is as follows:

START "SonicStudio" "C:\Program Files\ASUSTeKcomputer.Inc\SS2\UserInterface\SS2UILauncher.exe" /open_module SonicStudio.exe

My issue is, this then creates an active window on my desktop of Sonic Suite. I've tried /MIN but that didn't work. This is one of those taskbar apps that only returns to the taskbar when you click close. Is there a way I can automate the closing of the active window without exiting the application?
 
It appears that WM_CLOSE terminates the application, where as using ALT+F4 only closes the window but leaves it running. Either way, I've got food for thought and a few ideas to pursue. Thanks for your help.
 
That's where the problem lies. The application doesn't start from a shortcut in the startup folder. That was one of the first things I tried. I also tried running a batch that points to the shortcut with the run option set to minimised as well as trying one with commands.

I know it sounds like a bizarre issue, but it's a recurring one on the ASUS forums in the threads regarding the audio drivers. The only luck I've had getting it to start with windows is the above batch file. If I have to quickly click the X each time I start windows, so be it, but I'd like to automate it so I can be lazy. :D
 
Back
Top Bottom