Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- Path = input("Directory:")
- FileList = os.listdir(Path)
- for FileName in FileList:
- if FileName != "Script.py":
- NewName = str("Bojack Horseman") + str(" ") + str(FileName[16]) + str(FileName[17]) + str(FileName[18]) + str(FileName[19]) + str(".avi")
- os.rename(FileName, NewName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement