I'm fairly certain you cannot place NT commands in a parameter list and expect them to be executed. More likely the
GOTO will be seen by the interpreter as a series of four alpha characters and simply pass them on to
IE. Even if it did work, you'd more likely need to use
Call in this situation.
An alternative would be to extract the serial number using
WMIC prior to starting
IE and then use variable substitution (much like you did with %computername%) to resolve the parameters to
IE.
@echo off
for /f %%i in ('wmic bios get serialnumber') do set serial=%%i
start iexplore "http://www.mysite.com/index.php?serial_number=%serial%&computer_name=%computername%"
The
for statement is generic. You may need to tweak it for parsing depending on the actual output of
WMIC. If you run into problems, please run
wmic bios get serialnumber from the command line and post the complete output including any blank lines.
Good luck.