ExecutablePath, StartupPath and special caracters

  • Thread starter Thread starter Cedric
  • Start date Start date
C

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
 
By the way, I just forgot to mention that this happens with .NET 2.0. Same
code compiled with 1.1 works!

8-|
 
Back
Top