I have a question and I am new with this type of programming.
When I use this code with small csv files, everything runs fine but if the csv files get bigger, nothing happens.
Is there a limit of data (rows, columns) inside a csv file, if I want to combine many csv files with the following code?
Looking forward to your reply.
Thanks and kind regards, Sam
Code: Select all
@echo on
ECHO Set working directory
pushd %~dp0
ECHO Deleting existing gesamt file
set "gesamt=Y:\verwaltung\schultes\Changes\TEST\gesamt.csv"
del "%gesamt%"
setlocal ENABLEDELAYEDEXPANSION
set cnt=1
for %%i in (*.csv) do (
if !cnt!==1 (
for /f "delims=" %%j in ('type "%%i"') do echo %%j >> "%gesamt%"
) else if %%i NEQ "%gesamt%" (
for /f "skip=1 delims=" %%j in ('type "%%i"') do echo %%j >> "%gesamt%"
)
set /a cnt+=1
)