Thanks Dave! I will try that tonight. If I understand your batch file correctly, then:

- switch to the folder containing the . bas project file (I presume so the resulting .asm & .hex files will be created in the same place)

- compile .asm file with appropriate switches to tell it what PIC you're using and what .bas file to compile

- create .hex file

Where could I get more info on some of the command line switches you're using?

e.g. c:/pbp/pbpw -e -s -ac

and mpasmwin /e /l