anchor.diff:  )
   
   :label_userinput1
  +CLS
  +ECHO.
   REM Get user input
   SET /P user_input=""%filename%.txt" already exists, do you want to overwrite it? [Y/N]:"
   REM Check user input
  
positive.code: 	GOTO :label_exclude_subfolders
  ) ELSE (
  	ECHO Please enter Y to include subfolders or N to exclude subfolders.
  	GOTO :label_userinput2
  ))))
  
  :label_include_subfolders
  ECHO.
  REM Include subfolders and all files:
  DIR /s /b > "%filepath%%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 > "%filepath%%filename%.txt" || REM When using "|| REM" errorlevel is correctly set
  GOTO :label_end
  
negative.code: :label_end
  REM Check for errors
  IF %errorlevel% == 0 (
      CLS
      ECHO.
  	ECHO "%filename%.txt" created.
  )
  
  