Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to I reference a file that is located in a different drive?

Status
Not open for further replies.

BunBo900

MIS
Dec 11, 2009
50
US
Hello:

How to I reference a file that is located in a different drive? My site located under C:\inetpub\ Since the C: drive has limited space so I put some of my files e.g., pdf, interactive flash, word, wmv...etc. in a D:\MyFiles drive. But unable to get it to work.

<a href="pdf/myfile.pdf">my pdf</a> this works only when files located on the same C:drive

Please advice.
Thanks
 
Hi

You want to access those files though the web server, using HTTP ?

If yes, the easiest is to create a link to directory D:\MyFiles in C:\inetpub\ Then for example D:\MyFiles\pdf\myfile.pdf will be available also as C:\inetpub\ so you will be able to link to it as [tt]<a href="MyFiles/pdf/myfile.pdf">[/tt].

Feherke.
feherke.ga
 
Yes, using HTTP to open up those files. Link to Directory is network stuff I suppose? Am I right? I guess I need to configure on the server side?...I have to look it up because I am not familiar with what you mentioned.

Thanks.
 
Or create a subdomain in IIS that has the 'external' location as the document root for the subdomain.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
You can also add a virtual directory in your IIS site. You give it an alias and a physical directory and then address it as as if there was an alias folder in This way IIS can bind many drives into Site, without adding any type of link in the filesystem. It's neither better nor worse, but doing it in IIS configuration you have a documentation of where that linking comes from. If you add a folder on the filesystem level you might forget later, how you did it and at the time you migrate to another server nobody knows what has to move.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top