S
Steve Song
Guest
From time to time I have encountered this cryptic error, and I could not
understand why the perfectly good script will generate this error, until
today.
It seems like the if the target label is spanning the batch processor's
buffer (blocksize=512, from my observation on Win2K & XP), the error message
is generated.
To test my theory, I have created simple batch file as following.
goto BROWSER
rem
#####################################################################################################################
rem
###########################################################################################################################
rem
###########################################################################################################################
rem
###########################################################################################################################
:BROWSER
If the :BROWSER spans buffer boundary, then batch processor will not find
the label and throw error.
It is hard to imagine that Microsoft has not encountered this issue
internally.
Fixing this issue will be extremely simple and it won't slow down the batch
processor that much. Microsoft should fix this error as there are quite a
few batch files out there with many goto and call statements.
understand why the perfectly good script will generate this error, until
today.
It seems like the if the target label is spanning the batch processor's
buffer (blocksize=512, from my observation on Win2K & XP), the error message
is generated.
To test my theory, I have created simple batch file as following.
goto BROWSER
rem
#####################################################################################################################
rem
###########################################################################################################################
rem
###########################################################################################################################
rem
###########################################################################################################################
:BROWSER
If the :BROWSER spans buffer boundary, then batch processor will not find
the label and throw error.
It is hard to imagine that Microsoft has not encountered this issue
internally.
Fixing this issue will be extremely simple and it won't slow down the batch
processor that much. Microsoft should fix this error as there are quite a
few batch files out there with many goto and call statements.