Is it possible to retrieve the path of %APPDIR% (in Windows XP: C:\Documents and Settings\UserName\Application Data
) in JavaScript?
The solution must be supported by Internet Explorer 6.
Background: I want to provide the user with a link to a certain directory beneath %APPDIR%. I first tried <a href="%APPDIR%\MyFolder\">
or <a href="file://%APPDIR%/MyFolder/">
, but Internet Explorer 6 doesn't resolve it. I get a "Windows cannot find 'file://%APPDIR%/'" error message box.
So my plan is to set the HREF of the link in a JavaScript.
Edit: Actually, VBScript would be fine, too, as long as IE6 supports the solution.