Am I trying to do this and can't make it work? Getting datareal \ copydonotdelete.txt was unexpected at the moment.
rem @echo off if exists datareal\copiesdonotdelete.txt goto DoFunction1 Goto DoFunction2 Exit :DOFunction1 rename data datatemp rename datareal data rename datatemp datacopyfiles Echo Done Exit :DOFunction2 rename data datatemp rename datacopyfiles data rename datatemp datareal Echo Done Exit
source share