Application.ExecutablePath ???

Stonkie

Well-known member
Joined
Sep 12, 2007
Messages
279
Programming Experience
1-3
It seems that Application.ExecutablePath cannot return special french characters (like 'É'). It is a problem because our application's main executable name contains one such 'É'.

Is this a known issue? Is there a workaround?

Environment.CurrentDirectory seems to manage this well, but it is not always the directory of the main executable (if the app is started from command line for example).

--

I know now that other softwares we've sold to french customers may just break if they have an accented character in the filename and I am quite unhappy with the work to do to solve this in every applications we've done so far! (haven't told the boss until I get the solution :D)
 
both these get international characters:
AppDomain.CurrentDomain.BaseDirectory
My.Application.Info.DirectoryPath
 
great, thanks!
 
this one too, and it includes filename:
Reflection.Assembly.GetExecutingAssembly.Location
 
Back
Top