INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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

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

(OP)
Hello:

How to I reference a file that is located in a different drive? My site located under C:\inetpub\wwwroot. 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

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

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\wwwroot. Then for example D:\MyFiles\pdf\myfile.pdf will be available also as C:\inetpub\wwwroot\MyFiles\pdf\myfile.pdf so you will be able to link to it as <a href="MyFiles/pdf/myfile.pdf">.

Feherke.
feherke.ga

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

(OP)
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.

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

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

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

Hi

Quote (BunBo900)

Link to Directory is network stuff I suppose?
Nope. Is filesystem stuff. In a Command Prompt window type mklink /? to find out more on usage.

Quote (BunBo900)

I guess I need to configure on the server side?
Certainly.

Feherke.
feherke.ga

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

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 http://domain/alias/... as if there was an alias folder in wwwroot. 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close