Current Directory (System.IO.Directory.GetCurrentDirectory throws NotSupportedexeption)

  • Thread starter Thread starter Gustavo Curve
  • Start date Start date
G

Gustavo Curve

Hi,

when i call System.IO.Directory.GetCurrentDirectory() i get a
Notsupportedexeption. What other possibilities are there to get to know the
Path to the main-executable?

Thanks in advance
 
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase.ToString())
 
Back
Top