Thanks,Pommie.The idea for 16F87x is really good.I think I can use it in devices with such MCUs.But the second suggestion was just what I need to avoid.Changing the bytes manually will take too much extra work.
And thank you Nigel,too.oops,my mistake.You were talking about a command line.There're no command lines.But there are setting menus.This software normally works in this way,given an MPLAB generated hex file:Open the hex file in the 'File/Open' menu>select chip type>click on 'auto prog'.The parameters for 'auto prog' can be set by ticking the following options:Update hex file,detect chip ID,erase,empty check,write program,verify,wirte data(EEPROM),verify data(EEPROM),write configuration and run target board.I usually leave the empty check,EEPROM options as well as configuration options deselected.
A friend of mine told me that he had seen someone posting related items in a forum,refering to a .NUM file.He didn't say how exactly this file was used.Obviously it's not executable,but it worked and the hex file was changed after each write operation,plus his device was ICD2.I'm suspecting if there's an interface for such .NUM files in MPLAB.Anyway,doing some PC programing is inevitable.
By the way,Nigel.Where did you get the signature picture?It ressembles the character "Method" in traditional Chinese,but there are 2 redundant points in the middle.Looks interesting.