Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help - Get Current Directory from csharp.asmx

0 views
Skip to first unread message

Hank

unread,
Oct 3, 2002, 11:36:17 PM10/3/02
to
I have a Csharp web service that is being invoked and would like to
determine within the Csharp program what the directory that my csharp.asmx
file is in. Is there a system call for determining this?

Thankx
Hank


Lion Shi

unread,
Oct 7, 2002, 8:59:13 AM10/7/02
to
Hello Hank,

You may try the following way:

System.Reflection.Assembly.GetExecutingAssembly().Location

With it, you may get the location of the current executing assembly.

Hope it helps you.

Best regards,

Lion Shi [MS]
MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. 2001 Microsoft Corporation. All rights
reserved.
--------------------
From: "Hank" <henry...@attbi.com>
Subject: Help - Get Current Directory from csharp.asmx
Date: Thu, 3 Oct 2002 23:36:17 -0400
Lines: 8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <O2CABa1aCHA.460@tkmsftngp08>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: 66.56.62.45
Path: cpmsftngxa06!tkmsftngp01!tkmsftngp08
Xref: cpmsftngxa06 microsoft.public.dotnet.languages.csharp:97558
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

0 new messages