Execute .bat file when verify button is pressed in arduino IDE

Hello Robin,

Thanks for reply :slight_smile:

Robin2:
That would be easy to do using the Arduino IDE from the command line to compile the program and then using your BAT file to upload it.

Let me know if my understanding is correct.
I can add these commands inside my batch file at the initial part, which will verify the program and then the later in the same batch file there will be command for uploading (commands specific to module). So in single batch file click, I can verify and upload the program, correct?

P.S: I am using J-link to upload program to nrf51822 module.