Linking to an Unknown File?

We have a system (It is being called a “navigational tool”) that presents a series a processes in graphical form (Process Maps) and allows the user to visually navigate through a series of steps to ultimatley find a written procedure (there are 1000’s of these).

The person in charge of collating these documents will put the specified file (document) in a specified folder. The name of this file could therefore change depending on its version number etc. Is there a way to point my button link to a certain folder and having it load the file that is within this folder? There will only be one file in each folder and it may range from a Word Document, swf file, pdf file and even an Excel file. We are currently developing the system in Flash and HTML and it is a static system at present (no reading and writing from a database). Does anyone know a solution to this problem or should I be telling the Document control officer that when putting a new file in the folder it has to be the same file name as the previous???

where do you store the folder names ? Is this accesible via flash ? i dont think so…

you could use php to scan folders and then fetch the filename from the folders

see the XXIV. Directory functions section in php manual. or online at www.php.net

Thanks… but PHP is not installed on the server that this will sit on.

what is the server config ?

is it a web server ? it should alteast have perl / python / asp / asp.net / coldfusion / php / jsp

otherwise there is no way this can be done.

at max, you can write a program in any of the above or in c/vb etc which will read the directory contents and make an xml file. this flash can read directly.