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.

824 views      
Thread locked
 

Messages in this Thread

 
96,631 Postings in 12,230 Threads, 350 registered users, 76 users online (0 registered, 76 guests)
Index | Admin contact |   Forum Time: Mar 19, 2024 - 6:01 am UTC  |  Hits:62,009,872  (7,153 Today )
RSS Feed