Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from os.path import isfile, join
- import time
- import ctypes
- folderpath = r"C:\Windows\Web\Wallpaper\Wall"
- all_files = [ f for f in os.listdir(folderpath) if isfile(join(folderpath, f))]
- for image in all_files:
- print(image)
- ctypes.windll.user32.SystemParametersInfoW(20, 0, folderpath+ "\\" + image, 0)
- time.sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement