A DOS command closing a "Windows Explorer" window?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
budhax
Posts: 63
Joined: 09 Oct 2006 12:25

A DOS command closing a "Windows Explorer" window?

#1 Post by budhax » 17 Jun 2007 11:42

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.

jeb
Expert
Posts: 1055
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

#2 Post by jeb » 05 Oct 2007 15:01

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.

Post Reply