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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows - get full path of my program

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

What is the way to get a full path of my currently running program ?
Thanks

Long live king Moshiach !
 
Code:
use File::Basename;
print dirname ($0) . "/" . basename($0) . "\n";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top