Scheduling a Python Script via Windows Task Scheduler
问题 Observe the following Python script, "Script.py": import subprocess src_directory = 'Z:\z_7z\Some_Directory' zip_file_name = 'Test.7z' cmd = ['7z', 'a', zip_file_name, src_directory, '-mx9'] subprocess.Popen(cmd, stderr = subprocess.STDOUT, stdout = subprocess.PIPE) My intent is to schedule a Python script using Windows Task Scheduler. I have successfully done this using other Python scripts before. However, I am unable to execute the script shown above via scheduling. I am unsure as to