heritage
05-20-2012, 06:27 PM
Opening a file on the users C:\ drive with HTML. (Windows only, of course.)
I can have a viewer open a specific text file on his or her computer using the absolute path; i.e.
<a href="file:////C:/Users/JohnDoe/AppData/Roaming/ICAClient/webica.ini">webica.ini</a>
Unfortunately, for a wide variety of users I need something like an environmental variable, in this case
%AppData%/ICAClient/webica.ini
If a user pastes this into a Windows Explorer window it works perfectly. However this DOES NOT WORK.
<a href="file:////%AppData%/ICAClient/webica.ini">webica.ini</a>
Any suggestions on a variation which will work?
I can have a viewer open a specific text file on his or her computer using the absolute path; i.e.
<a href="file:////C:/Users/JohnDoe/AppData/Roaming/ICAClient/webica.ini">webica.ini</a>
Unfortunately, for a wide variety of users I need something like an environmental variable, in this case
%AppData%/ICAClient/webica.ini
If a user pastes this into a Windows Explorer window it works perfectly. However this DOES NOT WORK.
<a href="file:////%AppData%/ICAClient/webica.ini">webica.ini</a>
Any suggestions on a variation which will work?