From jeb :
>Output:
>C:\temp>rem :label is called with ':label:one'
>Parameters are 'p1 p2'
>C:\temp>rem :label is called with ':!var!:two'
>Parameters are 'P1 P2'
>C:\temp>rem :label is called with ':!complex^"
>var%^^x!:four P1 P2' Parameters are ''
>-------------------------
The output on my system is thus:
The syntax of the command is incorrect.
The syntax of the command is incorrect.
The system cannot find the batch label specified - EOF
If I modify your script to use command extensions then
it produces the output you showed.
Frank