PDA

View Full Version : Getting a file path from a filename



jason_kelly
Jul 29th, 2012, 06:08 PM
Hello,

I need your help,

How can I use javascript to find the filepath based on a given file filename?

ie.

the function would execute to find the database.mdb to be contained in: C:\primaryfolder\database\database.mdb



function find_filepath("database.mbd") { alert(filepath) }


Thanks for everyones help in advance

Much thanks and appreciation

Cheers

Jay

Philip M
Jul 29th, 2012, 07:29 PM
If you mean find the file path (as opposed to extract it from the known full file path) that cannot be done. Javascript cannot read the file directory either on the server or on the local machine.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.