title: How can i copy selected text file using command "FOR" in batch file?
body: <p>Hello guys as you read in topic how can i make a selected file to copy to another location.
  Im using my own Lithuanian language in this, if some one find it hard to understand tell me ill translate it. Right now it only creates new file when i start " name.bat test.txt" its not full code since there is lots of copy paste of same thing any ideas since im realy bad at .bat files.
  And i need to use command "FOR"</p>
  
  <pre><code>:DEKUPAZAS
  echo Pasirinkote Dekupazo kursus
  echo Bendrine informacija apie si bureli
  echo.
  type dekupazas.txt
  echo.
  set U=dekupazas.txt
  echo Ar norite:
  echo 1) Irasyti sia informacija i naujai sukurta faila?
  echo 2) Grizti kitu bureliu pasirinkimu?
  echo 3) Grizti prie srities pasirinkimo?
  choice /C 123 /N /M "Iveskite savo pasirinkima(1,2 arba 3): "
  if errorlevel 255 goto KLAIDA
  if errorlevel 3 goto SRITIS
  if errorlevel 2 goto KT
  if errorlevel 1 goto IRASYMAS
  goto PRADZIA
  
  :IRASYMAS
  echo Pasirinkote irasyti sia informacija i jusu sukurto pavadinimo faila
  echo Failas bus perkeltas i aplanka Pasirinkimas
  if exist Pasirinkimas rd /S /Q Pasirinkimas
  md Pasirinkimas
  for %%U in (U) do dir %%U &gt;&gt;%1
  move %1 Pasirinkimas &gt;nul
  goto PAB
  </code></pre>