It was unexpected now in the base, if then the statement

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 
+6
source share
1 answer

His existence does not exist

 if exist datareal\copiesdonotdelete.txt goto DoFunction1 
+9
source

Source: https://habr.com/ru/post/925164/


All Articles