pwclean.bat


@echo off
if "%1" == "" goto usage
if not "%2" == "" goto %2
if not exist %1.pwp goto not_project_dir
for %%f in (dat i imp pi asi lst rom eep ep el) do call %0 %1.%%f delfile
for %%f in (asm rst sid fid) do call %0 user%%f.asm delfile
for %%f in (userdef.h ip.inc cmd.inc ether.inc) do call %0 %%f delfile
goto end
:delfile
if not exist %1 goto end
echo.Deleting %1
del %1
goto end
:not_project_dir
echo.%1.pwp not found - not in project directory?
goto end
:usage
echo Usage: %0 project
goto end
:end

Back