Rename extentions
Thursday, October 30th, 2008So we had this propriatary Java program that processed files targeted by an extention name. When we upgraded another piece of the software, the case of the extention changed. We could not get the source of the Java programs include files. Temporarly we had to rename all of the files with upper case extentions. Here is what we came up with:
For /F “tokens=1,2* delims=.” %%f In (’Dir /B *.pbs’) Do move “%%f.%%g” “%%f.PBS”
This is a batch file. For command line only, remeber to remove one % for each variable.