I've stumbled across another problem in my program.
I want to use the goto command to go to the label specified in the chkpoint variable. I also want to make sure that if the chkpoint variable is empty (which will cause an error in the goto command) the goto command redirects to a specific label. But I'm unable to do that with this code:
Code: Select all
Goto :%chkpoint%||Goto :specificlabel
If the chkpoint var isn't empty, the code above works as desired, but if it is empty then it causes an error:
Code: Select all
The system cannot find the batch label specified -
Any help is greatly appreciated!