Skip to content Skip to sidebar Skip to footer

Use JavaScript/ActiveX To Get List Of Files

I've been Googling for hours with no avail...! How do I use the Scripting.FileSystem object? In my current case, I want to fill a SELECT element with a list of folders from a parti

Solution 1:

You can not use Scripting.FileSystem in web pages because of security reasons. In case you have enough permissions to create such object (HTA or no IE security), it can be used like:

var obj = new ActiveXObject("Scripting.FileSystem");

Post a Comment for "Use JavaScript/ActiveX To Get List Of Files"