Using filename wildcards in a hyperlink?

rbV5

Lifer
Dec 10, 2000
12,632
0
0
I can't seem to fiqure out how to use a wildcard to open a networked document from a hyperlink. The file name changes monthly, so I want to be able to open it using the part of the file name that never changes.

This is a sample of what works:
<a href="W|\test\spreadsheet\SeptemberSummary.xls">Current Month Summary</a>

I want to use something like this: (don't work)
<a href="W|\test\spreadsheet\(*)Summary.xls">Current Month Summary</a>

Maybe its not possible, but it seems like it should be simple... Its a network drive and its accessed from a HTMLhelp file and I'd prefer to not rebuild the page each month, or open the folder to access it. Thanks for any insight :)
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
AFAIK no wildcard expansion happens on the webserver. You might be able to get around it with some mod_rewrite magic but it would probably be simpler to switch the page over to be dynamically created so the link is always accurate. Or have a symlink on the server called CurrentSummar.xls that always points to the current month.
 

rbV5

Lifer
Dec 10, 2000
12,632
0
0
Originally posted by: Nothinman
AFAIK no wildcard expansion happens on the webserver. You might be able to get around it with some mod_rewrite magic but it would probably be simpler to switch the page over to be dynamically created so the link is always accurate. Or have a symlink on the server called CurrentSummar.xls that always points to the current month.

Alrighty then. Thanks for the feedback, it saved me a couple hours of trying to figure out where I screwed the syntax that would be better used for sleeping:thumbsup:

This is actually a pretty small issue, so I'm not so worried about it. I'm creating a base template to use to create our content with, and I was checking out different methods of accessing various documents accross our Network and it would have been nice if it worked in that manner.