ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Peter Shute       
Date: May 04,2020 at 23: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.

Thread locked

Messages in this Thread

95,245 Postings in 12,014 Threads, 350 registered users, 106 users online (0 registered, 106 guests)
Index | Admin contact |   Forum Time: Jan 16, 2021 - 12:05 pm UTC  |  Hits:36,841,512  (5,444 Today )
RSS Feed