473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to Map IIS Virtual Directory to Path Name

I wish to create a file in a virtual directory, and then navigate to it. For
this reason I need the virtual directory name, e.g.

//localhost/MyVirtualDirectory (or http://localhost/MyVirtualDirectory)

and a way in which to discover the proper path name from it, e.g.

d:\inetpub\wwwroot\MyVirtualDirectory

Can anyone tell me how I might do this?

TIA

Charles
Nov 20 '05 #1
2 6063
If you are using ASP or ASP.Net, use Server.MapPath

"Charles Law" <bl***@nowhere.com> wrote in message
news:eW*************@TK2MSFTNGP10.phx.gbl...
I wish to create a file in a virtual directory, and then navigate to it. For this reason I need the virtual directory name, e.g.

//localhost/MyVirtualDirectory (or http://localhost/MyVirtualDirectory)

and a way in which to discover the proper path name from it, e.g.

d:\inetpub\wwwroot\MyVirtualDirectory

Can anyone tell me how I might do this?

TIA

Charles

Nov 20 '05 #2
Thanks for the response, but I'm using VB.NET. Is there an equivalent?

Charles
"news.microsoft.com @cinci.rr.com>" <bpursley<NOSPAM> wrote in message
news:uW******************@TK2MSFTNGP09.phx.gbl...
If you are using ASP or ASP.Net, use Server.MapPath

"Charles Law" <bl***@nowhere.com> wrote in message
news:eW*************@TK2MSFTNGP10.phx.gbl...
I wish to create a file in a virtual directory, and then navigate to it.

For
this reason I need the virtual directory name, e.g.

//localhost/MyVirtualDirectory (or http://localhost/MyVirtualDirectory)

and a way in which to discover the proper path name from it, e.g.

d:\inetpub\wwwroot\MyVirtualDirectory

Can anyone tell me how I might do this?

TIA

Charles


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Smitha Nataraj | last post by:
Hello, I need to create a Virtual Directory in C#. Pls let me know if you have any hints regarding this.. Thanks, Smitha
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
6
by: Saar Carmi | last post by:
Hi How can I get the application's virtual directory from the Application_Start method in Global.asax ? Keep in mind there is no request/response object available yet in this stage. Thanks...
5
by: Stu Carter | last post by:
Hi, ENV: Windows 2003 Server SP1 (+all updates), VS 2003, .Net 1.1 SP1 We've got an ASP.Net web application using State Service. All is fine until we tried to use the app through a virtual...
2
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to...
1
by: Richard | last post by:
Hi, I created a new directory on my WinXP-Pro/SP2 file system. Then I created a virtual directory in IIS pointing to that local directory. After completing that, I noticed that I had a...
2
by: Rose winsle | last post by:
Hi guys ... I just wanted to create virtual directory using VB.net . i can manage that ... when i create the virtual directory how can i set anonymous access off. following is my code...
4
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
Best way I can think to describe this is through an example. I have a virtual directory, let's call it "MyVirtualDirectory" that maps to \\MyServer\Shared. I have a path that is...
4
by: tshad | last post by:
I have a site www.stf.com and a site www.stfstage.com (where I do all my testing). The problem is that www.stfstage.com is only internal and I need to get access from the outside (without...
5
by: Ned White | last post by:
I have set up a virtual directory on ISS 6.0 to store the all .jpg and .swf files which i use in my project It is alias name is "OutSrc" Is it possible to acquire a list of files which exist in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.