From eb4509d781e59a8c54373f4049ac04e75252b9ca Mon Sep 17 00:00:00 2001 From: adastram Date: Wed, 6 Dec 2023 22:20:20 +0100 Subject: [PATCH] Transfering files, NOT A WORKING VERSION --- autostart.py | 68 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/autostart.py b/autostart.py index aa79b28..eaedfd4 100644 --- a/autostart.py +++ b/autostart.py @@ -20,21 +20,81 @@ def add_to_scheduler(foldername: str, appname: str, programpath: str, arguments: ------ True if command created the task successfully, else, return False""" - + from datetime import datetime user = getlogin() path = join(getcwd(), "taskschedulerxml.xml") - + date = datetime.now() + XML = f""" - 2023-11-27T00:00:00 + {uri} + {securitydescriptor} + {source} + {date.year}-{date.month}-{date.day}T{date.hour}:{date.minute}:{date.second} {user} + {version} + {description} + {documentation} + + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + + + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + + + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + + + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + + + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + - true + false + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} {user} + + {logontrigger} + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} + + + {calendartrigger} + {startboundary} + {endboundary} + {repetiton} + {executiontimelimit} +