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

Parsing a file name from the whole path

Status
Not open for further replies.

flea333

Technical User
Sep 4, 2003
47
US
What is the best way to extract a random file name from its whole path when the file name and path will always be unique? EX: C:\Documents and Settings\My Documents\Zinni\MTmFreq140dB63_072204.txt

I want the .txt file name. Is there a way to search a string backwards for the '\'?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top