473,765 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get physical path

Hi

I am developing an application in which am using the windows application
template.
In one of the form i'll place a text box control and a button control, if i
entered the virtual directory name in this text box then it has to show me
the output the physical path of the virtual directory i've given.
For eg. if the virtual directory name is "sample"
if i enter "sample" in text box then it has to show the path where it is
mapped to (E:/..............)
Can anybody tell me how to do this through windows application.
Its very urgent.

Thanx in advance
Yoshitha
Nov 19 '05 #1
2 2691
So this is a windows application, correct? It is not running under
ASP.NET? Is it running on the web server? Can it ask for the virtual
directory of any application?

You might need to query the IIS metabase to pull this off outside of
an ASP.NET runtime environment.
--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 22 Jun 2005 12:17:31 +0530, "Yoshitha"
<gu**********@r ediffmail.com> wrote:
Hi

I am developing an application in which am using the windows application
template.
In one of the form i'll place a text box control and a button control, if i
entered the virtual directory name in this text box then it has to show me
the output the physical path of the virtual directory i've given.
For eg. if the virtual directory name is "sample"
if i enter "sample" in text box then it has to show the path where it is
mapped to (E:/..............)
Can anybody tell me how to do this through windows application.
Its very urgent.

Thanx in advance
Yoshitha


Nov 19 '05 #2
On Wed, 22 Jun 2005 12:17:31 +0530, Yoshitha wrote:
Hi

I am developing an application in which am using the windows application
template.
In one of the form i'll place a text box control and a button control, if i
entered the virtual directory name in this text box then it has to show me
the output the physical path of the virtual directory i've given.
For eg. if the virtual directory name is "sample"
if i enter "sample" in text box then it has to show the path where it is
mapped to (E:/..............)
Can anybody tell me how to do this through windows application.
Its very urgent.

Thanx in advance
Yoshitha

I am not quite sure what you are asking. In the Tools/Options you can set
up various options including the folders.
If you want to hack the templates (but be very careful), look in the
wizards folders under your installation.

Nov 19 '05 #3

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

Similar topics

0
1980
by: jason | last post by:
What is the best way to handle global includes for 3 subwebs that may at various times consume similiar include files such as ENQUIRY FORMS. I ask this question as I now have the oppportunity to control sub webs more tightly on my new host via virtual director and wish to improve the folder structure and code on my various sites. However, I am concerned with the implications for the PHYSICAL and RELATIVE file path options.
2
3111
by: Simon | last post by:
I wonder if someone can help with this - I 'm creating an IISVirtualDirectory, and setting its Path property to the physical path I want to reference. This works fine when I have a standard file path - 'C:/Test' - however I sometimes have a UNC path - '//remoteComputer/Test' - and IIS appears to choke when it's given that. So, is there any way of translating a UNC path to the physical path on the remote computer? ie: Translating '...
1
1990
by: Michiel Schaeverbeke | last post by:
Hi, I'm trying to reach an xml file from within a web application. The file is physically on a different server. When I try to reach it using \\servername\path\ style, I get the error "\\servername\path\ is a physical path". Using a virtual directory gives the same result. All I really do is the following: // XmlTransformer is a System.Web.UI.WebControls.Xml object
0
1070
by: DagoFlores | last post by:
Hi, Im trying to get programmaticly the physical path of each directory displayed on IIS Console. If the SchemaClassName is "IIsWebVirtualDir" then I can get it (i.e.: "C:\..."). Trying with the "IIsWebDirectory" schema, I get a url like follows: IIS://DAGOSERVER/w3svc/1/ROOT/DagoSite and not the common physical path like "C:\...". If I put both on the
1
2738
by: Raed Sawalha | last post by:
I have a problem in getting asp.net application physical path in global.ascx static function in my global.ascx i have a static function : first i tried to get the physical path by refelection using string rootPath = Path.GetDirectoryName(System.Refelection.Assmebly.GetExecutingAssembly().Location); but the problem it returned a path in temprary folder in /winnt/framework/ver/temporay asp.net files ..i do not know why?
9
2503
by: dgk | last post by:
Is there some built in way to know whether a physical folder path is 'My Documents" for a specific user? I can always use xxx.StartsWith to compare it to the enumeration returned by the Personal folder, but it seems a bit inelegant.
8
10752
by: Jaime Stuardo | last post by:
Hi all... How can I get the physical path of a web site from an EXE application? The Web Site is on the same server as the application. Thanks in advance Jaime
4
8734
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 \\MyServer\Shared\SomeDirectory\SomeFile.txt. I need to convert this path to a virtual path with the virtual directory name. The result I'm after would be: MyVirtualDirectory\SomeDirectory\SomeFile.txt
5
31050
by: marss | last post by:
Server.MapPath("~/page.aspx") returns the physical file path based on the specified virtual path. Is there any reverse method to get the virtual path based on the physical path (both pathes belong to the same web application)? Usually I do in this way: virtualFilePath = physicalFilePath.Replace(physicalRootDirectoryPath,"~/") Perhaps, is there standard inbuilt method?
0
4513
by: Ahmedhussain | last post by:
Hi everyone, I am totally new to IIS. I somehow configured IIS and now whenever I try to add a website, on testing it gives me the error of authorization, i.e. "Cannot verify access to path : The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.