PC Review


Reply
Thread Tools Rate Thread

How to determine running environment: desktop or web?

 
 
Don
Guest
Posts: n/a
 
      12th Jul 2004
I've got a DLL that needs to do different things based on whether or not the
app that's referencing it is a desktop app (e.g. typical VB.NET compiled
app) or web app (e.g. ASP.NET project running on IIS). Is there any VB.NET
method that tells you this kind of information, whether the app using the
dll at that time is a web app or desktop app?

- Don


 
Reply With Quote
 
 
 
 
David Williams , VB.NET MVP
Guest
Posts: n/a
 
      12th Jul 2004
One quick way that I can think of would be to check the
ExecutingDirectory directory. If it is system32 then your are must
likely in a Web application.

"Don" <(E-Mail Removed)> wrote in message
news:U%AIc.82498$WB5.54286@pd7tw2no:
> I've got a DLL that needs to do different things based on whether or not
> the
> app that's referencing it is a desktop app (e.g. typical VB.NET compiled
> app) or web app (e.g. ASP.NET project running on IIS). Is there any
> VB.NET
> method that tells you this kind of information, whether the app using
> the
> dll at that time is a web app or desktop app?
>
> - Don


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Macro (or VBA/Module) To Determine If Runtime Environment Is B genegal Microsoft Access VBA Modules 6 13th Feb 2010 07:16 AM
Programmatically determine who is logged into MSN Messenger in multi-user environment Dave Baker Windows XP Messenger 0 28th Aug 2006 04:04 AM
How to determine startup Desktop environment? paul _of_axe Windows XP Basics 2 30th Jan 2005 11:40 PM
Determine if my application is running in the Citrix environment Jack Wright Microsoft Dot NET Framework 2 6th Dec 2004 04:45 AM
determine environment .bat file was started from Mick Windows XP General 0 11th May 2004 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.