Okay, finally...programs are now compiling correctly in MPLAB IDE. Fixed with a path statement as suggested above; added into the autoexec.bat file, e.g. PATH=C:\WINDOWS;C:\PBP;C:\PROGRA~1\Microc~1\MPASMS ~1.
It took a couple of tries to get the syntax right, but working now.

Thanks