Page 1 of 1

A DOS command closing a "Windows Explorer" window?

Posted: 17 Jun 2007 11:42
by budhax
Hello,

Let's create a folder Folder1 in C:\ and open it (double-click or right-click > explore) this folder.
Now we have a "MS Windows Explorer" window titled "C:\Folder1".

Let's put in this Folder1 a file close.bat
I would close the "Windows Explorer" window titled "C:\Folder1", double-clicking on close.bat.

In other words:
is there a DOS command which can close a "MS Windows Explorer" window?

Thanks and regards.

Posted: 05 Oct 2007 15:01
by jeb
Hi,

late answer, but an answer.

From Mark Russinovich (known as Sysinternals) found at
http://www.microsoft.com/technet/sysint ... skill.mspx

"Windows NT/2000 does not come with a command-line 'kill' utility."

Use PsKill from the PsTools to kill a process by process id or process name.