Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting program name

Status
Not open for further replies.

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
 
Here is a long winded way

1) get your process id using getpid
2) look for it in popen ("ps")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top