• 0

Open an explorer.exe folder in HTML


Question

Hi there,

i want to be able to have a link in my HTML page so that when the user clicks it, it will open a folder on the local hard drive - c:\windows for example.

Any javascript onclick function I've tried keeps coming up with the ActiveX warning since SP2. Anyone know how I can do it (even with the activex warning if nothing else works as I haven't been able to get the onclick function to work properly.)

Thanks for your help.

Link to comment
https://www.neowin.net/forum/topic/274030-open-an-explorerexe-folder-in-html/
Share on other sites

19 answers to this question

Recommended Posts

  • 0
  travelcard said:
Hi there,

  i want to be able to have a link in my HTML page so that when the user clicks it, it will open a folder on the local hard drive - c:\windows for example.

  Any javascript onclick function I've tried keeps coming up with the ActiveX warning since SP2. Anyone know how I can do it (even with the activex warning if nothing else works as I haven't been able to get the onclick function to work properly.)

Thanks for your help.

585326995[/snapback]

Why would you want a user to click a link to open up a folder? Sounds kind of shifty to me. :shifty:

  • 0
  Jaded1 said:
Why would you want a user to click a link to open up a folder? Sounds kind of shifty to me.  :shifty:

585327004[/snapback]

I knew someone would say that :D

Just making a menu system for a directory on the server at work.

  • 0
  Tommy2k4 said:
file://c:\windows\ may work

585327010[/snapback]

Well, that kinda gets somewhere when it's written like this:

<html>
<head>
<title>test</test>
</head>
<body>
<a href = "file://c:/windows/"> windows</a>
</body>
</html>

Except the link opens in Internet Explorer not Windows Explorer. Any more ideas?

  • 0
  travelcard said:
Well, that kinda gets somewhere when it's written like this:

<html>
<head>
<title>test</test>
</head>
<body>
<a href = "file://c:/windows/"> windows</a>
</body>
</html>

Except the link opens in Internet Explorer not Windows Explorer.  Any more ideas?

585327493[/snapback]

IE and Windows Explorer are the same thing.

  • 0
  j79zlr said:
IE and Windows Explorer are the same thing.

585333426[/snapback]

Exactly. Go ahead and open up IE right now, and replace what's in the address bar with "file://C:/Windows" and the toolbar changes to the explorer toolbar. That's the way you're going to do it.

EDIT: Do you want to open it in a new window? Try

target="_blank"

That will open it up in a new window that is Explorer (since we showed that IE and Explorer are the same).

Edited by fubarshibby
  • 0
  travelcard said:
No they're not. All the files and folders open up as hyperlinks.

585335856[/snapback]

What are you talking about? As soon as IE open up a folder on the local machine, it changes into Windows Explorer. I would really like a screenshot showing the problem you are having.

I'm confused here, are you trying to display the USER's C:\Windows directory, or the directory on the server? If you are trying to show the directory on the server, then you would need to place it in your webserver's folder, like AresXP said.

  • 0
  travelcard said:
No they're not. All the files and folders open up as hyperlinks.

585335856[/snapback]

Will Ferrel from "Old School": You crazy man... I like you, but you crazy...

Dude, just make a test html page to test on your own computer and put a link to "file://C:/windows" in it. You'll see that j79zlr and I are correct.

  • 0
  M2Ys4U said:
if you're using Firefox, however, it won't work.

585336735[/snapback]

Well, it looks like it's for his work, so hopefully the business has a standardized environment on the desktop, and he won't have to worry about people using anything but IE.

  travelcard said:
Just making a menu system for a directory on the server at work.

585327449[/snapback]

  • 0

Is the folder the same all the time?

this wouldn't exactly be a one click solution, but you could have the user download and open a vbs file that calls Run to invoke explorer.

could you explain the real problem you are trying to solve. If you have access to all of the users computers then you can make use of WSH.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • This is what I assumed would happen back when the rumors started. A new tab on Instagram for your text feed... That way you'd get two facets of a user - a visual and a more textual/discussion-oriented one.
    • I agree - it's Cerebras power. Funny how Mistral isn't listed for that provider on OpenRouter despite Mistral being on OpenRouter. Edit: Ah, Mistral is of course their own provider on OR... Which probably in turn uses Cerebras. It's just that you don't get to it directly via OR.
    • I’m all for autonomous taxis. In my rural area a car is vital for work, socialising and appointments. Public transport is almost non-existent, with only two buses a day and none on weekends. The roads are narrow, unlit B roads with no pavements, so walking or cycling is unsafe. If you cannot drive, you depend on lifts or expensive taxis. City politicians / Gov keep making car ownership harder: higher road tax, soaring insurance because of repair costs and parts delays, and ever-rising fuel prices. A single mistake, such as a shaky cyclist overtake or getting trapped in a yellow box due to badly placed traffic lights at a roundabout and someone pulling out in front, can cost you your licence. They also push everyone toward electric vehicles, which do not work here. Many houses have no driveway and due to historic protection rules/laws cant add one, and you cannot run charging cables over the few bits of pavement we do have. Driving elsewhere to charge would also hurt the few local businesses left and act as a hidden tax on rural life as its more expensive to charge away from home. That’s why an on-demand, self-charging automated taxi service would be perfect for people here.
    • You can get deeper bass from your Polk soundbar with this $99 wireless subwoofer deal by Sayan Sen JBL and Samsung are still selling their soundbars with wireless subwoofers at great prices at the moment. The former has its BAR 1000 and BAR 700 models at their lowest, which the latter has the Q900F, Q800F, and Q600F, at least prices. If, however, you already have a soundbar, like the Polk Audio React, say, then you can add a subwoofer and get deeper bass; and now is the best time to pick one up as the React wireless sub is on sale for just $99 (purchase link down below). Unlike what some may feel like, a subwoofer is not there to make the bass louder, well technically yes, but in the way that makes your system boom more, that's what is known as the "boomy bass" and that is not something desirable, although some do like it. Instead, the subwoofer is supposed to augment the low end of your main speakers such that the bass/sub-bass from the subwoofer naturally blends with your main speaker's mid-bass/bass. The React subwoofer does not list too many spec details but Polk Audio claims that it can go down to 25 Hz. The unit comes with a high excursion long throw 7 inch bass driver and even with high excursion (high Xmax), it is never easy for a 7 inch driver to dig so deep. Since Polk does not quite disclose the SPL (sound pressure level) of the product at this 25 Hz frequency, it is probably safe to say that the dB output in this deep bass range is going to be much lower than its average SPL at frequencies like the 40-80 Hz spectrum. It is worth noting that most of the music actually lies above the 30 Hz range and thus if you are a music listener, the low output below 30 Hz won't even be noticeable. For movies, this sub should deliver plenty of oomph, and you will only miss the deepest of rumbles, but for just $99, can you even complain on missing out the lowest octaves? Polk React subwoofer rear view showing IO panel Get the Polk React 7 inch subwoofer at the link below: Polk Audio React 7" Wireless Subwoofer - Bass Adjust EQ, Amazon Alexa Compatible: $99.00 (shipped and sold by first-party Amazon US) (MSRP: $199.00) You can also check out other subwoofer options on Amazon at this link. This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Just merge it with Instagram already... Meta having two platforms with overlap was a bad business decision.
  • Recent Achievements

    • Posting Machine
      David Uzondu earned a badge
      Posting Machine
    • One Month Later
      Stokenking earned a badge
      One Month Later
    • One Month Later
      Kevin Jones earned a badge
      One Month Later
    • Week One Done
      Kevin Jones earned a badge
      Week One Done
    • One Month Later
      henryj earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      529
    2. 2
      ATLien_0
      270
    3. 3
      +Edouard
      199
    4. 4
      +FloatingFatMan
      189
    5. 5
      snowy owl
      137
  • Tell a friend

    Love Neowin? Tell a friend!