anchor.diff:  REM Add a number to the filename (e.g. file_1.txt)
   SET i=1
   :label_while1
  -IF NOT EXIST %filename%_%i%.txt (
  +IF NOT EXIST "%filepath%%filename%_%i%.txt" (
   	GOTO :label_endwhile1
   )
   REM Increment i
  
positive.code: :label_include_subfolders
  ECHO.
  REM Include subfolders and all files:
  DIR /s /b > %filename%.txt || REM When using "|| REM" errorlevel is correctly set
  GOTO :label_end
  
  :label_exclude_subfolders
  ECHO.
  REM Only files and folders in this folder:
  DIR /b > %filename%.txt || REM When using "|| REM" errorlevel is correctly set
  GOTO :label_end
  
  :label_end
  REM Check for errors
  IF %errorlevel% == 0 (
  	ECHO %filename%.txt created.
  )
  
  REM Wait for user to close
  
negative.code: 
  :label_userinput1
  REM Get user input
  SET /P user_input="%filename%.txt" already exists, do you want to overwrite it? [Y/N]:
  REM Check user input
  IF %user_input% == Y (
  	GOTO :label_filename_ok
  