You can script to execute any action in the batch file, and then go to Project-> Properties-> Build-> Post-build-command and enter the execution line of the batch file.
To go to the debug URL after compilation, just go to Project-> Properties-> Output, select "Open Document" and enter the URL.
source share