'Author: Demon
'Website: http://demon.tw
'Date: 2011/7/11
Option Explicit
Dim shell, window, path
Set shell = CreateObject("Shell.Application")
For Each window In shell.Windows
If window = "Windows Explorer" Then
path = Mid(window.LocationURL, 9)
Select Case path
Case "D:/", "D:/a"
window.Quit
End Select
End If
Next