I have scheduled the in-built windows task scheduler to run python code every day, the trigger time is 11.14 AM. The thing is, I told the scheduler to run cmd and invoke the keywords python pathtofile.py
as program arguments, but the scheduler starts the cmd from the System32
path but does not invoke the extra arguments supplied to the scheduler. How do I make this scheduler start cmd and run the command python pathtopythonfile.py
? I need to start the cmd and also after that happens the cmd needs to execute a python file in a remote location on my machine. I tried that with passing arguments to the scheduler when I pointed the .exe that should be called when the 11.14 M arrives and added the arguments "python file_location.py" but the arguments are not invoked when the command line starts.
The arguments were required in the interface below after I specified the program that should run.