Advertisement
EXTREMEXPLOIT

Rename Files

May 14th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import os
  2. Path = input("Directory:")
  3. FileList = os.listdir(Path)
  4.  
  5. for FileName in FileList:
  6.     if FileName != "Script.py":
  7.         NewName = str("Bojack Horseman") + str(" ") + str(FileName[16]) + str(FileName[17]) + str(FileName[18]) + str(FileName[19]) + str(".avi")
  8.         os.rename(FileName, NewName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement