Script to rename all *.txt extensions successive numbers
Posted on 2004-10-08
I have a directory of over 700,000 text files. I need to run them through another program, however in order for that program to work each text file must have numerical extension in the format .00x where x is any number. What that program does is it takes info in each of the text files and dumps it into a spreadsheet. What I need to do is figure out how to rename all of the *.txt extensions in the directory so that each file has a different number, and what number they have is not important.