anchor.diff:  		)
   	)
   	exit /b 0
  +	
  +:check_dir_empty
  +	set EMPTY=false
  +	:: if directory empty then end
  +	>nul 2>nul dir /a-d /s "%1*" || (set EMPTY=true)
  +	exit /b 0
  +	
  +:halt
  +	rem 3) restore directory path, where the script run (should do it in the parent script)
  +	popd
  +	call :haltHelper 2> nul
  +	
  +:haltHelper
  +	endlocal
  +	exit /b
   
  -	
positive.code: @echo off
  :: Copying files recursively from one directory to other
  ::  Copyright 2011, HarpyWar (harpywar@gmail.com)
  ::  http://harpywar.com
  
  :: where to get files
  ::  for example: module\include\source_replace\
  set SRC=%1
  :: where to copy these files with .bak ext
  ::  for examle: ..\..\..\source\
  set DST=%2
  ::  backup || restore
  set ACTION=%3
  
  
  set dir=module\include\source_replace\
  
  rem 1) set dir
  pushd %SRC%
  
  rem 2) iterate dir recursively
  @call :iterate_files
  @call :iterate_dirs
  
  rem 3) set dir to current, where script run (should do it in the parent script)
  popd
  
  goto :eof
  :iterate_dirs
  	:: iterate directory %1
  	for /F "tokens=* delims= " %%v in ('dir /B /AD-H "%1"') do (
  
negative.code: 	exit /b 0
  	
  :iterate_files
  	:: check if current directory is not empty
  	@call :check_dir_empty %1
  	if [%EMPTY%]==[true] exit /b 0
  	
  	:: iterate files in the directory %1
  	for /f "tokens=* delims= " %%v in ('dir /B /A-D-H "%1"') do (
  		set _dir=%1
  		set _file=%%v
  
  		if [%ACTION%]==[backup] (
  			if not exist "!DST!!_dir!" mkdir "!DST!!_dir!"
  			ren "!DST!!_dir!!_file!" !_file!.bak
  			copy /Y "!_dir!!_file!" "!DST!!_dir!!_file!"
  		)
  