Bryan
Bryan

Reputation: 1893

What is the Windows CE equivalent of Application.StartupPath?

I'm adding code to a program created to be used on Windows CE. My current problem is that Application.StartupPath isn't recognized. What is the Equivalent line of code I need to use?

Upvotes: 3

Views: 3123

Answers (1)

thelost
thelost

Reputation: 6694

You can retrieve it by

Path.GetDirectoryName (Assembly.GetExecutingAssembly ().GetName ().CodeBase);

Upvotes: 5

Related Questions