Guide doggy was on patrol and thought this can be answered instantly . Check second of my posts directly above yours.
You are correct. I read your comments 12 and it works fine. But I was interested to batch. I explored Google and expended many times before to get the solution. But I didn't get. I faced Shell problem that you noted. So I asked the question?
Same trick in batch is a bit more difficult. While trying to shorten the task, OP also skipped the checks which assure the Explorer was killed completely befrore Windows restarts it. On admin account that shortening can cause the Explorer Window to open instead of the shell. You could either use the little EXE by hb860 or add a delay to the script to avoid the early restart. Add this line before the Explorer-Restart (value is waiting time in seconds): Code: timeout /t 10
That's the issue I had with my VBScript. I had to specify in the script not to restart explorer until them next line of the script 'told' it to. BTW, here is my VBS wrapped in an EXE.
Already saw it . Had no intention to diss it . As stated for me the context menu is the preferred way (as one part of that actually bigger TOOLs menu). As always ... question of preferences.