• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 581
  • Last Modified:

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
0
jaygan
Asked:
jaygan
  • 2
  • 2
1 Solution
 
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
 
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

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now