Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how do you close windows with batch?

Featured Replies

in my unattended installation, everything's fine except that two windows-explorer-type windows pop out. is there anyway i can close them with batch commands?

thanks :D

When does this happen? During apps install? Please give a few more details. re: which apps they apply to etc.

  • Author

basically, i'm using the batch method to unattendedly install my apps. during the installation, some of my programs automatically open several folder windows. i need to know if there's a command to close that.

use taskkill

taskkill /F /FI"WINDOWTITLE eq SOMETITLE*"

That will close all windows that begin with SOMETITLE. If you know the exact name, replace SOMETITLE* with the name, if not, just put the first few letters, then put the *, and it will kill all processes that begin with those letters.

  • Author

it's not really a process. it's more like folder windows popping up. read my post above yours for a more detailed description.

They pop up and remain up and you have to close them manually? Is that what you mean? Or do they just pop up and close themselves.

If its the former then you have some wrong switches applied or as Alanoll said you are installing an app that needs to be "killed" via the taskkill cmd.

Which apps are you having trouble with?

Post your batch_file.cmd here for us to examine and tell us which apps please or we cant help.

I have this probelem too. When I install one of my programs silently, a windows pops up. It is the shortcut forlder of the software.

Give us a clue then Totoymola. Which app? And what switches are you using? We aint psychic ;)

  • Author

it's not a specific program. many programs do this.

after the installation, they open up the start menu folder containing its shortcuts.

is there anyway of closing the folders that pop out?

taskkill.exe /f /im explorer.exe

I think this would stop a normal explorer window with program shortcuts in it popping up, added to your cmd on a line below your path_to_switch cmd. But if its a program-specific window thats popping up you'd have to do as Alanoll said and get the name and path of the file that's popping up.

Please test.

Example...

ECHO.

ECHO Installing Whatever App

ECHO Please wait...

start /wait %systemdrive%\Install\Applications\Whatever.exe /s

taskkill.exe /f /im explorer.exe

taskkill.exe /f /im explorer.exe

I think this would stop a normal explorer window with program shortcuts in it popping up, added to your cmd on a line below your path_to_switch cmd. But if its a program-specific window thats popping up you'd have to do as Alanoll said and get the name and path of the file that's popping up.

Please test.

Example...

ECHO.

ECHO Installing Whatever App

ECHO Please wait...

start /wait %systemdrive%\Install\Applications\Whatever.exe /s

taskkill.exe /f /im explorer.exe

i don't suggest that. That will also kill Windows as well, causing the entire shell to restart. Give it a try in the Task Manager, and kill explorer.exe.

Since they open up start menu folder, write down their names, replace SOMETITLE in the line I gave above with the title. If there are more then one, use MORE THEN ONE taskkill statement with the other name.

What's so complicated about that?

  • Author
i don't suggest that. That will also kill Windows as well, causing the entire shell to restart. Give it a try in the Task Manager, and kill explorer.exe.

Since they open up start menu folder, write down their names, replace SOMETITLE in the line I gave above with the title. If there are more then one, use MORE THEN ONE taskkill statement with the other name.

What's so complicated about that?

the explorer.exe trick worked but the taskkill didn't. i think it's because the folders aren't considered an independent process but more like a sub-process of Explorer.exe so when the shell got shut down, it will go along with it.

thanks :D

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.