How To Read My Local Directory Using VBscript Or Javascript
Javascript March 3rd, 2009I want to read my local directory My Pics on my PC using VBscript or Javascript, then display the pics randomly in my local browser window, e.g. IE6. I will not be connecting to a host server nor am I running IIS.
Any ideas?
You cannot use VBScript or JavaScript to read a directory on a client machine. This is by design.
You can create an ActiveX control (Internet Explorer only), Java applet or server-side scripting code (which you specifically said you don’t want / cannot do) to read a client directory. In the first two cases, the client needs to give explicit permission to install the control / applet and to allow the control / applet to access the local drive.