Gets the physical file system path of the currently executing server application's root directory.
[Visual Basic]
Public ReadOnly Property PhysicalApplicationPath As String
[C#]
public string PhysicalApplicationPath {get;}
[C++]
public: __property String* get_PhysicalApplicationPath();
[JScript]
public function get PhysicalApplicationPath() : String; Property Value
The file system path of the current application's root directory.
Example
The following example assigns the physical file system path for the currently executing application to a string variable.
[Visual Basic]
Dim Path As String
Path = Request.PhysicalApplicationPath
[C#]
String Path;
Path = Request.PhysicalApplicationPath;
[C++]
String* Path;
Path = Request->PhysicalApplicationPath;
[JScript]
var path : String = Request.PhysicalApplicationPath
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpRequest Class | HttpRequest Members | System.Web Namespace