i want a BATch to check if 2 given files are in the directory + if they are change their names
so far i have gotten this:
@echo off
if exist %order.xml && %order.xml.orig goto RENAME
goto END
:RENAME
rename order.xml order.xml.old
rename order.xml.orig order.xml
:END
pause
which works just fine, but the problem is i have to copy this into each subdirectory. is there a way to let the BATch check every subfolder? everything i tryed just gave me an syntax-error