Synapse Syndrome [KGB]
2009-06-13 02:36:28 UTC
(NT shell scripting)
Say I have a goto parameter command -
goto :%parm%
If the batch label does not exist, the script ends with the error:
"The system cannot find the batch label specified - whatever"
I do not want the error message displayed, and I want the script to go and
do something else instead. If I try..
goto :%parm:~2% || goto :error
..that does not work.
Any solution?
Cheers
ss.
Say I have a goto parameter command -
goto :%parm%
If the batch label does not exist, the script ends with the error:
"The system cannot find the batch label specified - whatever"
I do not want the error message displayed, and I want the script to go and
do something else instead. If I try..
goto :%parm:~2% || goto :error
..that does not work.
Any solution?
Cheers
ss.