Get path of my executable file using VB.NET in PocketPC

Hello,

Can someone help me by providing the code on how to get the path of my program? I basically need to load other files residing in the same directory as the main program.

Thanks!

Regards,
Jay
jayganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jayganAuthor Commented:
Thanks for your quick reply.

Unfortunately, Application.StartupPath does not exist for CF.NET. As such, I can't use it in PocketPC :-(
0
bruintjeCommented:
Hello jaygan,

you could try
----------
source: http://wiki.opennetcf.org/ow.asp?p=CompactFrameworkFAQ/StartupDirectory&a=print&revision=1
----------

hope this helps a bit
bruintje
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jayganAuthor Commented:
Hello bruintje,

Your solution works!

Thanks for your help

Regards,
Jay
0
bruintjeCommented:
it was not exactly mine but wikis, glad it worked :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.