You can use this .bat
cls
@echo off
SET EXTENSION=%~x1
SET NAME=%1
SET CHEMIN=%~dp0
SET PCE_INCLUDE=%CHEMIN%include\pce
If "%EXTENSION%"==".c" goto Compilc
If "%EXTENSION%"==".C" goto Compilc
:Compilasm
bin\pceas.exe %1
goto Fin
:Compilc
bin\huc.exe %1
bin\pceas.exe %NAME:~0,-2%.s
:Fin
it automaticaly fix the environment variables of your current project.
It should be only named compil.bat (for exemple),and copied,executed, in your project folder .
it works like that:
In a dos window(and in your project folder) : compil.bat your_project.c
The output will be: your_project.pce
No need to specify any environment variables.
You can use multiple projects, you just have to copy compil.bat in all your project folder, and execute it in each specific folder .