CE101 Posted June 22, 2010 Share Posted June 22, 2010 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 Link to comment Share on other sites More sharing options...
Mobius Posted June 22, 2010 Share Posted June 22, 2010 (edited) ~ Edited March 2, 2011 by Mobius Link to comment Share on other sites More sharing options...
ajag Posted June 22, 2010 Share Posted June 22, 2010 Hi CE101, did you see the searchbox in the upper right... then you would have found this A-Jay Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1) Link to comment Share on other sites More sharing options...
CE101 Posted June 22, 2010 Author Share Posted June 22, 2010 Thank you Mobius and ajag. Exactly what I need. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now