2010-04-21 58 views
2

我將代碼添加到在Windows CE上創建的程序中。我目前的問題是無法識別Application.StartupPath。什麼是我需要使用的等效代碼行?什麼是Application.StartupPath的Windows CE等價物?

+0

http://stackoverflow.com/questions/881251/how-to-get-the-path-of-appwithout-app-exe的可能重複檢索 – ctacke 2010-04-21 13:09:14

回答

4

您可以通過

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