CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: directory path

  1. #1
    Join Date
    Nov 1999
    Posts
    21

    directory path

    I want to be able to find out the path from which my program is running. This way I can easily write a registry entry to make it run at startup, where ever it's installed. And no I don't want to have an installation program. Anybody help??


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: directory path

    very simple, just use App.path
    One drawback however, it specifies a directory, not ending with a \ unless it is a root.

    eg
    c:\temp <-- not trailing \
    c:\ <-- trailing \ !!!

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Feb 2000
    Location
    garden grove, california
    Posts
    64

    Re: directory path

    i am not sure if you no how to write to the regestry, go to this url if you want to no how to write to the regestry:
    http://www.vbcode.com/asp/showsn.asp?theID=1322



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured