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.

71 views      
 

Messages in this Thread

 
94,957 Postings in 11,969 Threads, 349 registered users, 21 users online (0 registered, 21 guests)
Index | Admin contact |   Forum Time: May 25, 2020 - 3:56 am EDT  |  Hits:31,224,795  (1,142 Today )
RSS Feed