I create manual tasks in the task scheduler like [here].(https://www.jcchouinard.com/python-automation-using-task-scheduler/) I want to do this in cmd but how to choose admin privilege and send all parameters like path python or my file
Advertisement
Answer
This is my command line
schtasks /Create /TN "python cmd" /tr "C:UsersautotestAppDataLocalProgramsPythonPython311python.exe C:UsersautotestPycharmProjectspythonProjectmain.py" /RL HIGHEST
But I get: Invalid syntax. Mandatory option ‘sc’ is missing. Type “CREATE /?” for usage.
I want to do this and set it to status ready.