write small VB script to get file name(the sub string u wanted)...

Invoke this VB script in batch pgm and in VB script pass back the value to a param in batch pgm....


Abhay.