|Try this, not fully tested. You will have to amend the paths/filenames to suit your setup. I suggest you test without changing the path for the output file, leave it in the %temp% folder until you are satisfied the script is doing what you require.|
:: Get Date & time for output filename
echo WScript.Echo Right(Year(Now^),4^) ^& Right(100+Month(Now^),2^) _
echo ^& Right(100+Day(Now^),2^)
for /f "tokens=*" %%a in (
'cscript.exe //Nologo %temp%\today.vbs') do set today=%%a
:: Create new CSV file omitting columns 10 thru' 14 from input file.
for /f "tokens=1-14* delims=," %%A in (%temp%\input.csv) do (
Did you Google for an answer before asking the question?