Page 1 of 1

Getting specific string from a longer string ?

Posted: Sun Aug 12, 2007 4:06 am
by scheinarts
Hi guys,

You are all familiar with the long path generated by windows when browsing/uploading a file.

Well, how do you get only the filename fro that whole long string, what ever length may be.

For example...

User browses their computer and selects path which look something like this:
C:\Documents and Settings\something\Desktop\JPG_images\image_folder\coolimage.jpg

How do I isolate coolimage by itself, so that I can use this as the title for the uploaded file?

Any help appreciated. Thanks.

Posted: Sun Aug 12, 2007 4:15 am
by Oren

Posted: Sun Aug 12, 2007 4:35 am
by scheinarts
:) tnx