I have a program which closes the explorer window if there is a visible window. It uses mainwindowtitle to see if it has a title and then uses - myprocess.closemainwindow to shut it down. This works fine on my machine (xp pro) but on some other computers it closes the background explorer as well, forcing a shut down. Does anybody know why this might be. I have gone through folder options (ie launch in seperate process). Is there some other setting that needs to be in place or any other ways of closing or hiding the explorer window without stopping background explorer.exe


dim myprocs() as process
dim myexproc as process

myprocs = process.getprocessbyname("explorer")


for each myexproc in myprocs
if myexproc.mainwindowtitle <> "" then

else
myexproc.closemainwindow
loop

please help i'm going insane!