Thank you for your reply.
pert:
I could keep trying to explain this in generalities but at this point it looks like that will be very time consuming. How about you provide complete details of what you're trying to accomplish?
Here are the details of what I am trying to achieve:
I am programming nrf51822 module (datasheet) following this repo:GitHub - sandeepmistry/arduino-BLEPeripheral: An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
I am able to compile the program succesfully without any problem.
For uploading I am not able to do directly from arduino IDE. So I am using command line tools
suggested by nordic to upload the program. I have created a batch file that picks up hex file and does uploading job automatically.
However, everytime I compile program I have to separately run the batch file (by double clicking on file).
So I was wondering if arduino IDE can be modified little bit such that when I compile the program at the end of successful compilation, it runs the batch file to upload the program.
Hope this explanation helps