Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 613
daniel Avatar asked Jul 09 '09 21:07

daniel


1 Answers

Windows Mobile doesn't have the concept of a current folder. The "current folder" is basically always set to be the root of the filesystem, no matter where your application is located.

To get the path your application is located, you can use Assembly.GetExecutingAssembly(), and the CodeBase property or GetName() method

like image 118
jalf Avatar answered Nov 15 '22 08:11

jalf