Created
June 19, 2024 22:50
-
-
Save tablacus/b49250c6f5df57e4dd7f444823750ce8 to your computer and use it in GitHub Desktop.
Control from the outside scripts - Tablacus Explorer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sha = new ActiveXObject("Shell.Application"); | |
var sw = sha.Windows(); | |
for (var i = 0; i < sw.Count; ++i) { | |
var x = sw.item(i); | |
if (x && x.Document) { | |
var w = x.Document.parentWindow; | |
if (w && w.te && w.te.Data) { | |
var FV = w.GetFolderView(); | |
WScript.Echo(FV.FolderItem.Path); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment