Only for changing file's name with SAME SEQUENCE name that stored in .txt file
Using '-h' option for little help:
python cName.py -h
BRIEF
It can change specify type file's name in path into new name stored in .txt
MAKESURE
.txt file is UTF-8(without BOM)
USAGE
python cName.py .txt path *.xxx
I have 3 .docx files: '1.docx'、'2.docx'、'3.docx' and they are sorted by name.
Now i want to change their name:
1.docx -> A.docx
2.docx -> B.docx
3.docx -> C.docx
So i create a .txt file and fill 'A' 'B' 'C' in sequence.
Then run the python script and we can change their name.
So,if you are a cautious person, you will find out this script can't replace .txt type file's name cause our new name is stored in .txt file.
And for this reason, i recommend you use a suffixless file to store new name. Hope this can work!