How to pass multiple arguments?
16,481
It's basically the same as how you'd pass them in command prompt:
- Separate the arguments by space,
- Enclose each argument with double quotes,
"
if metacharacters are involved
As in:
"super user:" 810934
Alternatively you could simply add the arguments next to Program/script
as Akina points out:
D:\my_script.bat "super user:" 810934
After selecting OK the following should be prompted:
Related videos on Youtube
Author by
Nae
I am a programming enthusiast who has an Electrical & Electronics Engineering B.Sc. degree. I highly value constructive criticism, I'd love to be notified if something that I'm responsible for is faulty.
Updated on September 18, 2022Comments
-
Nae almost 2 years
How to pass multiple paramaters for
Start a program
action in Windows Task Scheduler for a batch file? There's no built-in syntax hint...-
Akina almost 6 yearsWhen I write the whole command line to "Program/script" field Scheduler auotmatically moves all arguments to an arguments field during saving the task, with all nesessary quotes... for you not so?
-
Nae almost 6 years@Akina I haven't tried that. I'd add it as an answer if so.
-
Akina almost 6 yearsTry, and if so - add it into your answer as alternative variant. One solid answer is better than 2 separate ones.
-