views:

44

answers:

2

I have a server with a C: drive and a D: drive. My ASP.NET application is on D: drive as follows:

D:\inetpub\vhosts\mywebsite.com

I want my application to read and download files located on C:\sessionVideos\

My problem is how do I create an URL pointing to the "C:\sessionVideos\" folder?

Thanks, James

A: 

Depends what you're looking to do exactly - you could create a virtual directory underneath your site that maps to the directory hence the folder will seamlessly slot in as if it was located in your application/sites directory.

Chris W
+1  A: 

Assuming that you have direct access to the server, you would use the IIS Manager and right-click the site within which you want to create the URL, select 'New', and then click 'Virtual Directory'.

In the Virtual Directory Creation Wizard, click Next. In the Alias box, type a name for the url (ie: MyWebSite/Videos) and then click Next. In the Path box, type or browse to the 'C:\sessionVideos\' directory, and then click Next. Note that you can select an existing folder or create a new one to contain the content for the virtual directory. Select the check boxes for the access permissions that you want to assign to your users. Click Next and then click Finish.

Now the url http://MyWebSite/Videos will access 'C:\sessionVideos\'

Skelly
Thank you... Sounds like this is what I was missing. I will give this a shot!
James
Perfect, works like a charm.
James