How can I list the file content of a directory?

J

John

Hi,
I wonder if it is possible to list the content of a directory (a
directory that contains image files for example) by using a JavaScript
method, something like in Java with

File directory = new File("C:\myDirectory");
String[] list = directory.list();
....
....
.... etc.

Thank you for your answerz
John
 
P

Pluus Papegaay

(e-mail address removed) (John) wrote in @posting.google.com:
Hi,
I wonder if it is possible to list the content of a directory (a
directory that contains image files for example) by using a JavaScript
method, something like in Java with

File directory = new File("C:\myDirectory");
String[] list = directory.list();
...
...
... etc.

Thank you for your answerz
John

Do you already know something about it?
I have the same question.....
 
K

kaeli

Hi,
I wonder if it is possible to list the content of a directory (a
directory that contains image files for example) by using a JavaScript
method, something like in Java with

Not in the default security environment.
If you want this for your own computer or a CD app, check out HTAs. You
can do a lot more with those. It's pretty much the same as a "normal"
HTML page, but uses a .hta extention and runs only on Windows OS. You'd
use WSH (Windows Script Host) to get the file list.

--
--
~kaeli~
The more ridiculous a belief system, the higher probability
of its success.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top