12345678910 @echo offset FOO= bar If %FOO%==bar goto labelrm file1:labelcp file1 file2
@echo off
set FOO= bar
If %FOO%==bar goto label
rm file1
:label
cp file1 file2