Click here to Skip to main content
15,900,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a windows mobile application in which I need to get full application path. For this I am using the below code:
C#
string sStartupPath = Path.GetDirectoryName(this.GetType().Assembly.GetModules()[0].FullyQualifiedName);


But it is not giving me the fully qualified name so can you please suggest me how to get this?

Thanks in advance.
Posted
Updated 17-May-11 2:41am
v2

1 solution

In .NET 2.0 running on Windows XP this would be Application.StartupPath but from a quick look at the docs I can't say whether it will work for Windows Mobile.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900