I run a batch skript where I want to use a third input as optional input. I tried
some code...
If Not "%~3"=="" (
echo hello world >> %3
)
some code...
The skript works fine as long I actually pass some third parameter but breaks once I skip it. Unfortunately, I am unaware of error handling in batch. I cannot even say why the program breaks.
Can you help me with either the error handling or the solution?
Best, Peter