I must say C# and the available functionality in the .NET framework amazes
me time and time again. I don't know how any of these very
detaillistic/specific issues I've seen being solved by STANDARD solutions!
May I cheer out loud and be happy to embarked on the this C# ship !?
"Michael A. Covington" <lo**@www.covingtoninnovations.com.for.address> wrote
in message news:Ov**************@TK2MSFTNGP10.phx.gbl...
Path.GetFileNameWithoutExtension
or even
Path.ChangeExtension
(they do your work for you!)
"Pluto" <Pl***@Pluto.com> wrote in message
news:eb**************@TK2MSFTNGP12.phx.gbl... Hi,
I can have code like:
Application.ExecutablePath
to return something like "c:\blah\myapp.exe"
I only want "c:\blah\myapp" (or even just "myapp") to return, is there
some other code I can use? Otherwise, I'll have to trim the ".exe".
In the end I want to build a string like "c:\blah\myapp.config".
Thanks.