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!

Spliting a path

Status
Not open for further replies.

MoshiachNow

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

A simply one...

I need to split paths like
"//KDI-PGY2500/AraxiHome/CreoAraxi/data/SWOP 2.icm"

into:
//KDI-PGY2500/AraxiHome/CreoAraxi/data/
and:
"SWOP 2.icm"

The path may include any number of folders(with spaces in names),and I need to get it and the file name,which may include spaces.

Thanks

Long live king Moshiach !
 
If you use the File::Basename module, the "basename" function will give you "SWOP 2.icm" and the "dirname" function will give "//KDI-PGY2500/AraxiHome/CreoAraxi/data".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top