@echo off REM ar.bat IF NOT EXIST %2.o GOTO lista REM Add, Replace, or Update modules to a new or already exitsing archive :archive C:\Dev-Cpp\bin\ar.exe cruv %1.a %2.o GOTO done :lista REM List all files in an archive C:\Dev-Cpp\bin\ar.exe tv %1.a :done