• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Opening File Link in Windows Explorer

I work on a lot of projects at a given time and am trying to make myself a quick reference HTML page to manage them. Each project usually has 2-3 folders associated with it (e.g. "Simulation program", "Report", et cetera). I would like to be able to link to these various folders in the HTML page such that when I click on them, they will open in Windows Explorer (or, if it's a file, the default program or some target program?). I spent a bit of time searching for how to do this, but couldn't really come up with anything. The basic code is really simple, but it just opens the linked folder in the browser rather than in Windows Explorer.

Code:
<h1>Project #1</h1>
	<ul>
		<li><a href="file:///C:/Papers/">Report</a></li>
		<li><a href="file:///C:/Programs/">Program</a></li>
	</ul>

I'm sure there's a simple way to do this, but I'm not finding it. Any help is appreciated.

edit: Just thought that this might be a security risk or something, so maybe it's not possible?
 
Last edited:
Not possible. HTML and javascript (smartly) support no methods of interacting with the external OS. Thus, there is no way to specify what happens when a link is clicked. (Ok, you probably could do it with some activeX components, but those would only be available in Internet explorer.)
 
Not possible. HTML and javascript (smartly) support no methods of interacting with the external OS. Thus, there is no way to specify what happens when a link is clicked. (Ok, you probably could do it with some activeX components, but those would only be available in Internet explorer.)
Thanks. Thought I could save myself some time and effort by doing this, but I guess not...
 
I don't know if anyone cares, but as I continued to play around with this today, I discovered that OneNote is great for this sort of thing. It does pretty much exactly what I had in mind and gives me more functionality. Thanks for the help Cogman.
 
Back
Top