ZTree.com  | ZEN  | About...  

 Index   Back

Start Z: works, but how to kill it?   [OT]

By: Peter Shute       
Date: May 04,2020 at 19:53
In Response to: [OT] Reconecting mapped network drives on VPN after sleep (Slobodan Vujnovic)

> But I found the fastest way to be the command "start z:", which
> launches Windows Explorer and does the work.

I didn't notice this comment, and independently reinvented it today, but as "explorer z:".

It would be nice if there was a way to close the Explorer window again automatically.

I found a suggestion to do this:
start /min N:\
timeout 2 /nobreak
taskkill /im explorer.exe /fi "WINDOWTITLE eq N:\\"

But the titles of my explorer windows aren't that simple. They include the share name too. And even if I include them in teh command, it keeps saying "INFO: No tasks running with the specified criteria."

I tried "tasklist /fi "imagename eq explorer.exe" /v" but it lists the window title as N/A.


Messages in this Thread

95,065 Postings in 11,983 Threads, 350 registered users, 104 users online (0 registered, 104 guests)
Index | Admin contact |   Forum Time: Aug 4, 2020 - 7:03 pm EDT  |  Hits:32,847,813  (35,080 Today )
RSS Feed