Home All Groups Group Topic Archive Search About

ExecutablePath, StartupPath and special caracters

Author
5 Jan 2007 10:22 PM
Cedric
Hi all,

I faced a small problem and was wondering the reason (if any) for this.

You can do the following test, quite easy. Just create a small app,
displaying values of :
Application.StartupPath and Application.ExecutablePath

Now when running this app from a directory containing a special caracter
like for example "c:\myéapp" then StartupPath works correctly where
ExecutablePath returns a strange special caracter instead, something like �
so "c:\my�app"...

Any idea why this is behaving this way, and how to make it work?

Thanks,

Cédric

Author
5 Jan 2007 10:27 PM
Cedric
By the way, I just forgot to mention that this happens with .NET 2.0. Same
code compiled with 1.1 works!

8-|


Show quote
"Cedric" <cedric.dardenneNO@SPAMaccenture.com> wrote in message
news:%23TJr4fRMHHA.5016@TK2MSFTNGP04.phx.gbl...
> Hi all,
>
> I faced a small problem and was wondering the reason (if any) for this.
>
> You can do the following test, quite easy. Just create a small app,
> displaying values of :
> Application.StartupPath and Application.ExecutablePath
>
> Now when running this app from a directory containing a special caracter
> like for example "c:\myéapp" then StartupPath works correctly where
> ExecutablePath returns a strange special caracter instead, something like
> � so "c:\my�app"...
>
> Any idea why this is behaving this way, and how to make it work?
>
> Thanks,
>
> Cédric

AddThis Social Bookmark Button