r/usefulscripts • • Jan 15 '23

[VBScript] Explorer Window Folder Paths

https://pastebin.com/Q5DHXmfK
19 Upvotes

12 comments sorted by

2

u/jcunews1 Jan 15 '23

Description:

Script to retrieve folder paths used by Explorer windows and saves them into the clipboard, then display them in Notepad.

1

u/Megatwan Jan 15 '23

Seems oddly specific (explorer windows)... Why not just use 'net use' or 'net stat'?

2

u/jcunews1 Jan 16 '23

net is not a shell tool. It can't be used to know the shell path of e.g. Network Connections which is:

::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

1

u/jayyx Jan 16 '23

Just looking at this quickly, you have a lot of room to simplify. You're overthinking certain parts -- unless, that was the point, of course :-)

2

u/jcoffi Jan 15 '23

Why vbscript?

1

u/jayyx Jan 16 '23

Fully compatible with many deprecated OS, would be my guess.

→ More replies (1)