🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.aspdotnet.general
Article #22

Re: How to determine the local-path in which a webapp is placed (Application-path)

#22
From: Marc Rohloff TeamB
Date: Sun, 12 Dec 2004 00:43
17 lines
1367 bytes
On Tue, 7 Dec 2004 10:57:10 +0100, R. Hoek wrote:

> I would like to determine what the local path is, of .NET webapplication.
> In Delphi (win32 webapp) I used something like 
> ExtractFilePath(GetModuleName(HInstance)).
> 
> Is there something equivilent for this?

Try one of 
Request.ApplicationPhysicalPath
Request.PhysicalPath
or
Server.MapPath(@"\");

-- 
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID: <1bwgbb5cg3n0d.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41b57e74$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,31e9633c7686d4ab
X-Google-Attributes: gid124d48,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: How to determine the local-path in which a webapp is placed (Application-path)
Newsgroups: borland.public.csharpbuilder.aspdotnet.general
User-Agent: 40tude_Dialog/2.0.14.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <41b57e74$1@newsgroups.borland.com>
Date: Sat, 11 Dec 2004 19:43:29 -0500
Message-ID: <1bwgbb5cg3n0d.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 4.225.98.65
X-Trace: newsgroups.borland.com 1102812151 4.225.98.65 (11 Dec 2004 16:42:31 -0800)
Lines: 17
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail