0
votes
Vote UpVote

C#/.NET – GetExecutablePath – borrowed a bit from the Delphi 2006 RTL

The Wiert Corner – Somehow, at every client I need a function like GetExecutablePath. Maybe you do too, so here is the code that I adapted a long time ago from the Delphi 2006 RTL: using System; using System.Diagnostics; using System.Reflection; namespace bo.Reflection { public class AssemblyHelper { public static string GetExecutablePath() { // borrowed from D2006\source\dotNet\rtl\Borland.Delphi.System.pas function ParamStr(): string result; Assembly entryAssembly = Assembly.GetEntryAssembly(); if (null != entryAssembly) { ...
Favorite? Off-Topic? jpluimers @ 2009-07-15 17:08

Statistics

Visits: 344
Votes: 0
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)