madanthrax
IS-IT--Management
Hi guys,
I know how to check if a file exists on the webserver an asp page resides on, but does anyone know if you can check an type of path to see if a file exists?
I have an associated site on another server that stores its pdf files (several thousand) using a naming convention and keeps them in one folder. Document versions have an extra f at the end for french, s for spanish etc. A typical english version filename would be DS2402.pdf with DS2402f.pdf for the french translation. I have an SQL view of all the doc numbers and english version filenames in my database with the docs details. (I have access to their tables)
If I can check the other site for french, spanish etc files (up to 7 languages) I can use a simple 'if file ? exists then' in the recordset loop to put the word 'french version' in with a hyperlink to the file if the doc comes in a french version. The associated site finds non english versions for its page links this way, they of course can search their own folders using asp. Why they did not put all the filenames in the DB is a good question, too late now (bad design).
If you have any ideas I thank you.
Ant
I know how to check if a file exists on the webserver an asp page resides on, but does anyone know if you can check an type of path to see if a file exists?
I have an associated site on another server that stores its pdf files (several thousand) using a naming convention and keeps them in one folder. Document versions have an extra f at the end for french, s for spanish etc. A typical english version filename would be DS2402.pdf with DS2402f.pdf for the french translation. I have an SQL view of all the doc numbers and english version filenames in my database with the docs details. (I have access to their tables)
If I can check the other site for french, spanish etc files (up to 7 languages) I can use a simple 'if file ? exists then' in the recordset loop to put the word 'french version' in with a hyperlink to the file if the doc comes in a french version. The associated site finds non english versions for its page links this way, they of course can search their own folders using asp. Why they did not put all the filenames in the DB is a good question, too late now (bad design).
If you have any ideas I thank you.
Ant
"Nothing is impossible until proven otherwise"