X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

href="file://f://myfile.ext would like to not specify hard drive and use same directory as my html file.

Veröffentlicht

When using href="file://f://myfile.ext" it open fine within Firefox 3.6.8. However, I would like to NOT hard code the hard drive and use the same drive location as my html file that invokes this href link. I have tried to use href="file://///myfile.ext" and it does not work. I get an error message saying File Not Found. For ie browser I can just specify href="/myfile.ext" and it works fine. This is a simple html file that references severals local files and I have all of this material on a usb memory stick (ie my F drive). The memory stick will be sent to several folks and their usb drive may be some other letter.

When using href="file://f://myfile.ext" it open fine within Firefox 3.6.8. However, I would like to NOT hard code the hard drive and use the same drive location as my html file that invokes this href link. I have tried to use href="file://///myfile.ext" and it does not work. I get an error message saying File Not Found. For ie browser I can just specify href="/myfile.ext" and it works fine. This is a simple html file that references severals local files and I have all of this material on a usb memory stick (ie my F drive). The memory stick will be sent to several folks and their usb drive may be some other letter.

Ausgewählte Lösung

I found a solution to my problem. Found that I could just specify href="myfile.ext" and it will find it when it is in the same directory as the html containing the reference. No need for additional slashes!

Diese Antwort im Kontext lesen 0

Mehr Details zum System

Installierte Plugins

  • -Shockwave Flash 10.1 r53
  • IBM GLOBAL PRINT PLUGIN VER 4.0
  • IBM 821 Conference Plugin for Mozilla version 8.2.3.505
  • 6.0.12.732
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealJukebox Netscape Plugin
  • Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
  • Default Plug-in
  • Provides additional functionality on Facebook. See our web site for details.
  • Java Plug-in 1.5.0 for Netscape Navigator (DLL Helper)
  • WebSphere Client Java Plug-in
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • Google Update
  • Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • DRM Netscape Network Object

Anwendung

  • User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

Weitere Informationen

Firefox 3.6.8

Ausgewählte Lösung

I found a solution to my problem. Found that I could just specify href="myfile.ext" and it will find it when it is in the same directory as the html containing the reference. No need for additional slashes!

I found a solution to my problem. Found that I could just specify href="myfile.ext" and it will find it when it is in the same directory as the html containing the reference. No need for additional slashes!
hospital 0 Lösungen 1 Antworten
Veröffentlicht

i still have the issue that i can't link to a local drive on my private server. for example: file://q:\cheese\cheeseburger.avi

only openeds a blak page and putting my intranet adress in front of the above command. Thats way de cheesburger file won't start. The directory is not the same anymore. now it's called : http://intranet/ file://q:\cheese\cheeseburger.avi

Firefox weet niet hoe het dit adres moet openen, omdat het protocol (q) met geen enkel programma is verbonden.

i still have the issue that i can't link to a local drive on my private server. for example: file://q:\cheese\cheeseburger.avi only openeds a blak page and putting my intranet adress in front of the above command. Thats way de cheesburger file won't start. The directory is not the same anymore. now it's called : http://intranet/ file://q:\cheese\cheeseburger.avi Firefox weet niet hoe het dit adres moet openen, omdat het protocol (q) met geen enkel programma is verbonden.