Page 1 of 1

Replace Command Line Parameter

Posted: Wed Apr 22, 2020 12:16 pm
by waldo
Please see attached screen shot. I need to change the last parameter (i.e., 216079 in the screen shot) in the parameters command line string for each iteration of the task. The rest of the command line does not need altered---only the last six digit number with parenthesis needs modified for each iteration. Is it possible to create a user variable prompt to "replace" the 216079 parameter with another 6 digit number and then "run" this task? Thanks. JimC

Capture_Robotask.JPG
Capture_Robotask.JPG (57.36 KiB) Viewed 6941 times

Re: Replace Command Line Parameter

Posted: Wed Apr 22, 2020 1:24 pm
by Oleg
You can use some variable for command-line parameter
  • set one value to variable
    run command line
    set another value to variable
    run command line
I see that you already use variable ReportName
Also please note that dot "." is illegal symbol in the variable name

Re: Replace Command Line Parameter

Posted: Wed Apr 22, 2020 3:29 pm
by waldo
Oleg,
Thanks for the advice. I am confused though. The screen shot command line does run now (i.e., it includes the Report.Name variable). Your comment would imply this should not be the case. Can you explain further?
JimC