Current Application Directory

  • Thread starter Thread starter Casey Motherway
  • Start date Start date
C

Casey Motherway

Why, when I start my app by dragging a file onto it, does
System.IO.Directory.GetCurrentDirectory() return "C:\Program Files\Common
Files\System\Mapi\1033"??

And how do I get the Current Directory (the one my app is sitting in) if I
start my app by dragging a file onto it?

I have scoured the msdn and googled for an too long. Please help.
 
It turns out I should have been using Application.ExecutablePath to get the
executable directory.

I still wouldn't mind knowing why the current directory is set to C:\Program
Files\Common Files\System\Mapi\1033 though.
 
Back
Top