Chnage Rows in main.list() after add Kundennummer
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user