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

Thread: Complete Path

  1. #1
    Guest

    Complete Path

    When i start my program i want to know the complete path to were the
    application began. Is there an easy way to find this?

    Thanks.


  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: Complete Path

    GetCurrentDirectory() will tell you where the application's working directory is.

    GetModuleFileName() will give the path to the executable you are running, from which you can deduce its directory.

    Wasn't sure from your question which of the two

  3. #3
    Join Date
    May 1999
    Posts
    128

    Re: Complete Path

    you can also use __argv[0]


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