title: Batch File: ' delims= " was unexpected at this time'
body: <p>I've been trying to make a batch file that makes folders named after the people on a <code>.txt</code> file list, and then gives them full access to modifying their own personal folder.</p>
  
  <p>The problem is that I keep getting a <strong>' delims= " was unexpected at this time'</strong> error.</p>
  
  <p>Here's my code here, I was wondering if you guys would be able to find out what I did wrong, thanks ^-^</p>
  
  <p>(Btw I haven't added the permissions part yet, I just need to get this part sorted out first)</p>
  
  <p>CODE: <a href="http://pastebin.com/XLi11nZa" rel="nofollow">http://pastebin.com/XLi11nZa</a>
  NAMES LIST: <a href="http://pastebin.com/xbh3WTSv" rel="nofollow">http://pastebin.com/xbh3WTSv</a></p>
  
  <pre><code>@echo off
  color A
  echo What is the name of list file? (Do not include format)
  SET /P list=
  setlocal EnableDelayedExpansion
  set "cmd=findstr /R /N "^^" %list%.txt | find /C ":""
  for /f %%a in ('!cmd!') do set m=%%a
  SET c=0
  echo !m! folders to be created. Continue? (Y/N)
  SET /P ANSWER=
  if /i {%ANSWER%}=={y} (goto :yes) 
  if /i {%ANSWER%}=={yes} (goto :yes) 
  exit
  :yes
  echo Now creating %m% folders.....
  for /f "eol=; tokens=1 delims=," %%i in ("%list%.txt") do (  
  SET /a c = !c! + 1
  mkdir "%%i"
  echo !c!/%m% folders created [%%i]
  )
  endlocal
  echo Now adding permissions to  %m% folders.....
  pause
  setlocal enabledelayedexpansion
  SET c1=0
  for /f "eol=; tokens=1 delims=," %%i in ("%list%.txt") do (  
  SET /a c1 = !c1! + 1
  SET word=1
  SET /a showme=c1-1
  SET showme=skip=%showme%
  IF !c1! equ 1 set "showme= "
  FOR /F "tokens=%word% %showme% delims= " %%F IN ("%list%") DO if defined 
  
  showme set showme=%%F
  SET first=%showme:~0,1%
  
  SET word=2
  SET /a showme1=c1-1
  SET showme1=skip=%showme1%
  IF %c1% equ 1 set "showme1= "
  FOR /F "tokens=%word% %showme1% delims= " %%L IN ("%list%") DO if 
  
  defined showme1 set showme1=%%L
  set B=%showme1%%first%
  
  set _STRING=%B%
  
  set "_UCASE=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  set "_LCASE=abcdefghijklmnopqrstuvwxyz"
  
  for /l %%a in (0,1,25) do (
     call set "_FROM=%%_UCASE:~%%a,1%%
     call set "_TO=%%_LCASE:~%%a,1%%
     call set "_STRING=%%_STRING:!_FROM!=!_TO!%%
  )
  
  set _STRING
  echo %_STRING%
  echo %_STRING%&gt;&gt;testing.txt
  
  endlocal
  pause
  )
  </code></pre>
  
  <p>names list</p>
  
  <pre><code>Loralee Stucky
  Tomas Silberman
  Marleen Rosell
  Phyllis Steier
  Elmo Jetter
  Kristyn Spruell
  Willetta Vandermeer
  Hazel Alsobrook
  Naida Nixon
  Nadia Godfrey
  Lavonna Antunez
  Mac Castile
  Tamela Stover
  Piedad Heidrick
  Hien Welsh
  Carolin Gularte
  Mariko Tolentino
  Alia Graddy
  Deadra Rehkop
  Donella Pittman
  </code></pre>