Chnage Rows in main.list() after add Kundennummer

This commit is contained in:
2023-08-10 10:26:34 +02:00
parent 0ebf152422
commit d6f0875fee
16 changed files with 174 additions and 181 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import shutil
def create_windows_task(task_name, command, schedule):
try:
command_line = f'schtasks /F /create /tn "{task_name}" /tr "{command}" /sc {schedule}'
command_line = f'schtasks /F /create /ru "SYSTEM" /tn "{task_name}" /tr "{command}" /sc {schedule}'
subprocess.run(command_line, shell=True, check=True)
print(f"Windows task '{task_name}' created successfully.")
except subprocess.CalledProcessError as e: