Any support for ingredients?
Re: Any support for ingredients?
Thanks - I will take a look
Re: Any support for ingredients?
I did some extensive testing today, and Push2Run does not have a bug in it, it is working as expected.
For example, if you use the $[-] in Push2Run, and say something where the variable data contains "one two three' what will get passed over to the batch file is "one-two-three".
You can use the following batch file code to confirm that:
cls
echo %1
pause
The output will be "one-two-three"
Having that said, something that I learned today, is if you use the $[,] in Push2Run, and say something where the variable data contains something like "one two three' what will get passed over to the batch file is "one,two,three". However, the batch file will process the commas as field separators and what you will see out of the same batch file as above is only the "one"
If you give it a try you will see what I mean: the output will be "one"
However, if you change your batch file as follows:
cls
echo %*
pause
and rerun the above two tests, you will see the outputs as:
"one-two-three"
and
"one,two,three"
respectively.
According, to solve your problem, you might just need to use %* in your batch file as opposed to %1 or %1 %2 %3 etc..
Hope this helps.
For example, if you use the $[-] in Push2Run, and say something where the variable data contains "one two three' what will get passed over to the batch file is "one-two-three".
You can use the following batch file code to confirm that:
cls
echo %1
pause
The output will be "one-two-three"
Having that said, something that I learned today, is if you use the $[,] in Push2Run, and say something where the variable data contains something like "one two three' what will get passed over to the batch file is "one,two,three". However, the batch file will process the commas as field separators and what you will see out of the same batch file as above is only the "one"
If you give it a try you will see what I mean: the output will be "one"
However, if you change your batch file as follows:
cls
echo %*
pause
and rerun the above two tests, you will see the outputs as:
"one-two-three"
and
"one,two,three"
respectively.
According, to solve your problem, you might just need to use %* in your batch file as opposed to %1 or %1 %2 %3 etc..
Hope this helps.
-
- Posts: 5
- Joined: Fri Jan 17, 2020 5:30 am
Re: Any support for ingredients?
This is solving my issue... very helpful, thanks!