Sign in to follow this  
Followers 0
CE101

Extracting a Filename from a Path

4 posts in this topic

How do I obtain the filename from a path.

For example, the full path is: C:\Documents and Settings\Gary\Desktop\temp1.txt

How do I extract "temp1.txt" into a variable?

Any suggestions would be greatly appreciated.

Gary

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

~

Edited by Mobius

Share this post


Link to post
Share on other sites

Hi CE101,

did you see the searchbox in the upper right... then you would have found this :mellow:

A-Jay


Rule #1: Always do a backup         Rule #2: Always do a backup (backup of rule #1)

Share this post


Link to post
Share on other sites

Thank you Mobius and ajag.

Exactly what I need.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0