Forums Assignment Help How can my program discover the complete pathname to the executable from which it was invoked?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1243
    Aakanksha
    Participant

    How can my program discover the complete pathname to the executable from which it was invoked?

    #9807
    Aakanksha
    Participant

    argv[0] may contain all or part of the pathname, or it may contain nothing. You may be able to duplicate the command language interpreter’s search path logic to locate the executable if the name in argv[0] is present but incomplete. However, there is no guaranteed solution.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.