diff --git a/outlook/Schedule.py b/outlook/Schedule.py new file mode 100644 index 0000000..00611e2 --- /dev/null +++ b/outlook/Schedule.py @@ -0,0 +1,4 @@ +import subprocess +subprocess.check_output("cd path_to_batch_file_escaping_the_back_slash && drive_letter: && name_of_the_batch_file.bat",stderr=subprocess.STDOUT,shell=True) +subprocess.check_output("schtasks /Create /tn name_of_the_task /sc ONSTART /st time_in_24_hour_format /tr absolute_path_of_batchfile_with_backslash_escaped.bat",stderr=subprocess.STDOUT) +