|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ExecutablePath, StartupPath and special caractersHi 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 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 |
|||||||||||||||||||||||