Search code examples
c#vb.netwindows-mobilecompact-framework

Compact Framework Current Folder


How do I know which is the current folder of an App?

I mean... Is there a way to know where is the exe located from the running code?


Solution

  • string fullAppName = Assembly.GetCallingAssembly().GetName().CodeBase;
    string fullAppPath = Path.GetDirectoryName(fullAppName);