G
gum
Other than argv[0] is there a way to obtain the name of the executable
programatically?
programatically?
gum said:Other than argv[0] is there a way to obtain the name of the executable
programatically?
Other than argv[0] is there a way to obtain the name of the executable
programatically?
gum said:Other than argv[0] is there a way to obtain the name of the
executable programatically?
gum said:Other than argv[0] is there a way to obtain the name of the executable
programatically?
Vladimir S. Oka said:gum said:Other than argv[0] is there a way to obtain the name of the
executable programatically?
AFAIK, no, at least not portable. Why would you want to do it,
though?
Walter said:Other than argv[0] is there a way to obtain the name of the executable
programatically?
What is the name of the executable that is running your microwave oven?
Default said:gum said:Other than argv[0] is there a way to obtain the name of the
executable programatically?
What's wrong with that way?
Vladimir S. Oka said:gum said:Other than argv[0] is there a way to obtain the name of the executable
programatically?
AFAIK, no, at least not portable. Why would you want to do it, though?
Arndt Jonasson said:Vladimir S. Oka said:gum wrote:AFAIK, no, at least not portable. Why would you want to do it, though?Other than argv[0] is there a way to obtain the name of the executable
programatically?
Rather off-topic now, but the question deserves an answer. Here is one
possible reason: a trick that's sometimes used is to create two
different programs out of the same executable file. When the program
starts, it determines from its name which one it is and handles its
input accordingly.
gum said:Other than argv[0] is there a way to obtain the name of the executable
programatically?
... and even argv[0] may be a null pointer.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.