Skip to Content
0
Former Member
Feb 21, 2009 at 05:36 AM

Fetching name of a file from the file path.

79 Views

Hi All,

I have a file path specified

C:\Documents and Settings\Desktop\<fname>_<date>.xls in a variable.....<fname> can have ne vlaue

I need to fetch the <fname> from the entire file path in another variable.............how can i do tht???

say for e.g. the path is C:\Documents and Settings\Desktop\PLYWOOD_090221.xls

I need to fetch 'PLYWOOD' from the file name.......

Regards,

Janaki