473,549 Members | 2,670 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
Jul 21 '05 #1
3 4025
Yoshita,

Is the application that you develop a windowsform or a webform. Those have
different methods for this.

WindowsForm is in environment.

Because that it looks the most on Webform, look for request.physica lpath
http://msdn.microsoft.com/library/de...lpathtopic.asp

I hope this helps,

Cor
Jul 21 '05 #2
I am using windows form not web form


"Cor Ligthert" <no************ @planet.nl> wrote in message
news:un******** ******@tk2msftn gp13.phx.gbl...
Yoshita,

Is the application that you develop a windowsform or a webform. Those have
different methods for this.

WindowsForm is in environment.

Because that it looks the most on Webform, look for request.physica lpath
http://msdn.microsoft.com/library/de...lpathtopic.asp
I hope this helps,

Cor

Jul 21 '05 #3

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

Similar topics

0
1971
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,...
2
3087
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...
1
1975
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...
0
1063
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:\...". ...
1
2730
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...
9
2488
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
10743
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
8715
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: ...
5
31038
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,...
0
4408
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...
0
7959
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7473
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...
0
7810
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5369
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...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
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...
1
1944
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
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.