@echo off set fn="%VID_HOME%\templates\%1.7z" if exist %fn% ( call "%VID_HOME%\tools\7z.bat" x -o. -y %fn% ) else ( echo Template %1 not found )