|I’ve searched the forums on this site & couldn’t find anything conclusive. I need a DOS batch command similar to the one below to add a '.tif' extension to multiple files that have a specific pattern in their extension.|
The DOS batch command line:
for %%i in (*.????????) do ren %%i %%i.tif
For example, rename *.20080902 to *.20080902.tif in the same directory as the batch file.
The only problem is that the above script renames all files in the directory (including the batch file 'ren2tif.bat').
The script needs to SKIP files that DO NOT have the 8-digit numeric format (i.e., *.yyyymmdd) in the extension.