(2020-02-14, 05:09 PM)mvallevand Wrote: If you notice my last example the parameter to the batch file is %1 for the xml file I gave you. I may have confused you when I posted in linux format ($1) in a few posts.
Martin
I have to be honest, I really don't follow what you are saying here:
Code:
[color=#d6d3cd][size=small][font=Roboto]Yes you could pass %1 to another app but that is not you asked. If you followed that links you would see several solution but I suggest this if your STB is faster with zero padding (add the padding number of zeroes you need[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]SET CHANNEL=00%1[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]SET CHANNEL=%CHANNEL:~-3%[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]SET D1=%CHANNEL:~0,1%[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]SET D2=%CHANNEL:~1,1%[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]SET D3=%CHANNEL:~2,1%[/font][/size][/color]
[color=#d6d3cd][size=small][font=Roboto]Martin[/font][/size][/color]
I now have a script accepting '401' for example as an input argument. How do I map what you are saying above to '401'?