Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shutil
- import os
- source = "C:/Users/dariu/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets/"
- destination = "D:/Desktop/Spotlight/New"
- files = os.listdir(source)
- def main():
- copy()
- rename()
- def copy():
- for f in files:
- shutil.copy(source + f, destination)
- os.rename(f, f.replace)
- def rename():
- i = 1
- for f in files:
- os.rename(f, 'Spotlight_', + str(i), '.jpg')
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement