The a line in each text file is an alpha numeric line in brackets. i.e (D240-456-1000-AB) the file will be renamed to D240-456-1000-AB example: sren 3 *.* or sren 3 *.* > c:\temp\srenlog.txt