
This book addresses 32-bit Windows commands applicable to modern versions of Windows based on the Windows NT environment. 2 Using the Windows command interpreter.This behavior of Windows Explorer can be better watched with free tool Process Explorer of Sysinternals by selecting explorer.exe and viewing in lower pane on the handles of this process containing among lots of other handles also the handles of the opened folder windows.Ī console application is required which finds a window by title, get the handle of this window and sends the WM_CLOSE event message to this folder window. But only one explorer.exe is listed on Processes tab of Windows task manager even with multiple folder windows opened. Windows Explorer just pretends that the folder window is a separate task on Windows task bar and on Applications tab of the Windows task manager. Every folder window is in real just a window of always running Windows Explorer (desktop) opened in a separate thread. Independent on how many folder windows are opened, the number of explorer.exe processes for each user is always just 1. On Windows XP or with Launch folder windows in a separate process not being enabled the folder window is not opened as separate task respectively as separate process. If it is possible at all to use the command taskkill to close an Explorer folder window and which string to find in title bar, just the name of the folder or the full path of the folder. Launch folder windows in a separate process.Therefore it depends on version of Windows (2000, XP, Vista, 7, 8, 8.1) and the Folder Options The double word SeparateProcess has the value 0 respectively option Launch folder windows in a separate process on View tab of the Folder Options is not checked.Īnd as foxidrive found out (read comments below) and I can also confirm, enabling this setting has on Windows XP SP3 no effect on number of explorer.exe running on opening folders even after a restart of Windows. It is not possible to close the Windows Explorer window of a folder using command taskkill if in Windows registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
