Aug 15, 2002 #1 Zebra2k Programmer Aug 12, 2002 11 US Hi, How do I get the name of the current running program without using the command line argument argv[0]? thanks, zb
Hi, How do I get the name of the current running program without using the command line argument argv[0]? thanks, zb
Aug 15, 2002 #2 xwb Programmer Jul 11, 2002 6,828 GB Here is a long winded way 1) get your process id using getpid 2) look for it in popen ("ps" Upvote 0 Downvote