Jump to content
Sign in to follow this  
CE101

Extracting a Filename from a Path

Recommended Posts

CE101

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
Mobius

~

Edited by Mobius

Share this post


Link to post
Share on other sites
ajag

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
CE101

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.