question

PasqualePatti-9179 avatar image
0 Votes"
PasqualePatti-9179 asked DSPatrick commented

Windows Task Scheduler w/ Multiple Arguments

I have an issue with a specific task I created. (Windows Server 2016 Standard)

In the Program/script section I have the following:

c:\Progra~1\myprog\Pro\bin\Python\scripts\mypy.bat

And in the arguments section I put the following:

c:\Users\suser\Desktop\comm1forup.py c:\Users\suser\Desktop\comm2forup.py

However, when I run the task, only the italicized bold scripts execute above. In other words, the second argument does not fire.

Am I doing something wrong? I appreciate any help for this.

Thanks!

windows-server-2016
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

doesn't look valid. Might try putting all of it including arguments inside the batch. Some ideas here.
https://stackoverflow.com/questions/4871620/how-to-pass-multiple-params-in-batch

--please don't forget to upvote and Accept as answer if the reply is helpful--









· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for that @DSPatrick -

I'll look into that solution. Strange that it works with the first argument but not the second, but that's just my lack of experience talking...

0 Votes 0 ·

Strange that it works with the first argument but not the second

This is expected behavior.

--please don't forget to upvote and Accept as answer if the reply is helpful--




1 Vote 1 ·
PasqualePatti-9179 avatar image
0 Votes"
PasqualePatti-9179 answered DSPatrick commented

Worked like a charm!

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Glad to hear of success.


1 Vote 1 ·