Reading a part of file name

April 5, 2009 at 13:02:20
Specs: Windows XP
HI,

I want to read the some part of file name kept
at specific location. for example
there is a file named as
ABC0.20090404.0000.tar.gz kept at
c:\test\user\
and I want to read the file name or output only
as ABC0.20090404.0000 because by using
this part of file name i want to delete
ABC0.20090404.0000.txt file from another
location.

Could you please help me how can I get the
desired output?
Thanks,


See More: Reading a part of file name

Report •


#1
April 5, 2009 at 13:34:29
This is a script tht will parse the filename out of the full path,

mid(split("c:\test\user\ABC0.20090404.0000.tar.gz","\")(3),1,instr(1,split("c:\test\user\ABC0.20090404.0000.tar.gz","\")(3),".tar.gz")-1)


Report •
Related Solutions


Ask Question