Linking to executables on local hard drive

They have: 3 posts

Joined: Apr 2001

I am trying to link to executables that live on the local hard drive. My syntax is Program. I have several different programs listed in a menu and for some programs I get either 1 of 2 resulsts. In Netscape Communicator 4.7 Result 1 is a message stating that "Netscape is unable to find the file or directory named "yada yada yada" or I get the pop up box that wants to save the file. In I.E. 5, for the programs that Netscape can't find I get a lengthy message stating the page can't be found and for the programs that Netscape wants to save I get a pop up box that wants to either save or run.

My questions are:
1. Why am I not connecting to the programs at all?
2. Can I fix it and how?

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Welcome to TWF, Mekela.

that's very interesting
try linking to the network address ("\\PC_name\drive\dir\file.exe")

You should always get the run/save window. There doens't seem to be a way around this.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 3 posts

Joined: Apr 2001

Thanks Mark. Linking to the host name worked along with using the correct capitalization on the directory path and file name. IE the file download box appears and I can choose to save or run the program, but in Netscape the Save box pops up and there is no choice. Now I know you said there was no way to get around that, so does that mean that you can't run an executable from Netscape? I have searched high and low on their developers pages for an answer, all for naught. Thanks again.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I'm sorry I don't know, I'm an IE guy. I don't ever use Netscape.

They have: 3 posts

Joined: Apr 2001

Thank you any way. I wish I could only use IE.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Netscape looks up things differently than IE. Trying opening Netscape, and then opening a file in it from your hard drive. You'll see not:

file:///c:/ but rather, file:///c|

No, there is no way to have it work in both without doing it on the web, or having separate links for both.

Smiling Suzanne

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

perhaps browser descriminant JS code

if (NN) {
document.write link1
}
if (IE) {
document.write link2
}

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Yes, yes, of course! I was thinking in strict make one link in HTML that works everywhere mode.

What Mark said is a perfect solution!

Smiling Suzanne

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.