|%%~Na%%~Xa puts out the filename.ext with no path, which is what we need.|
@echo off & setLocal EnableDelayedExpansion
if not exist newfolder\ md newfolder
if not exist newfolder\seconds md newfolder\seconds
for /f "tokens=*" %%a in (files2move.txt) do (
if exist newfolder\%%~Na%%~Xa (
copy "%%a" newfolder\seconds\
) else (
copy "%%a" newfolder\
I goota get some sleep. If this doesn't get it, tomorrow I'll create the source files.
If at first you don't succeed, you're about average.