(Mar-10-2024, 06:03 PM)Winfried Wrote: After I followed the instructions above, I can see the screen flicker every minute (looks like a CMD window opens and closes real fast) but I don't see Notepad.Then it probably working.
Change to this and test again,now it will force cmd to stay open.
import subprocess subprocess.Popen(['C:/Windows/System32/notepad.exe']) input('Press enter to exit')
Quote:If there's an easier way to run a Python script on Windows once every day, I'm not wed with MS' Task Scheduler.Python job scheduling for humans
# pip install schedule import schedule import time def job(): print("I'm working...") schedule.every(.1).minutes.do(job) # Woking test 10 sec # schedule.every().day.at("10:30").do(job) while True: schedule.run_pending() time.sleep(1)