954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

scanning files in a spec folder

Hi everyone
I'm more than a little stuck and would appreciate a hint. I'm struggling to read files in a folder and then pass the variable to the following:

prophetboy
Newbie Poster
2 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

You can't do this with a HTML scripting language.

If you use a server side language - something like JSP, ASP, PHP etc, then you can scan the server directories and populate a list in the webpage.

Also, remember to use web URL paths and not filesystem paths:

C:\Desktop special\leftmenu\video\intro.wmv

These will work when you are testing on your computer at home, but not when you publish to the web.

Cheers.

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

Thanks for replying but I think I stated my intentions poorly. What I want to do is scan a folder for specific files (on my own computer) and then put them in a list box as a selection. I'm putting this page on my desktop as a web page. I'm trying to use a scripting language such as JavaScript to read the files from a selection.

I tried to use this to read a fold but I couldn't get it to work for me.
http://www.codeproject.com/jscript/RenameAllFiles.asp

The next is a copy of the original project I found and was endeavoring to change.
http://www.codeproject.com/jscript/leftmenu.asp

you will see on the left menu there are selections. I want to be able to select one and have a media play show a list box show the videos in the folder.

Right now I live in China and can't run to the store to buy English books and I've looked on the net but I'm not having a lot of luck finding the material.

can you help

Chad

prophetboy
Newbie Poster
2 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

Scripting languages are generally prohibited from searching a computer outside the web page environment for security reasons

I have written such a function in Visual Basic.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

It is possible to run applications on the client machine, but this is usually not appreciated by the user and involves signing trusted code.

A better alternative may be to request the client user to browse their computer for a file they want to load.

Unless this is only meant to be for your use.

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

Use VB or Perl to do things on your own computer.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

hi...
I too had the same problem.But you message worked good..
Let me explain about the TWAIN and OCR.

You can't do this with a HTML scripting language.

If you use a server side language - something like JSP, ASP, PHP etc, then you can scan the server directories and populate a list in the webpage.

Also, remember to use web URL paths and not filesystem paths:

These will work when you are testing on your computer at home, but not when you publish to the web.

Cheers.

johnvarenda
Newbie Poster
2 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You