Hello I have the following code:
for %%F in ("C:\test\*.csv") do
(
echo TEST1 >test.txt
echo TEST2 >>test.txt
)
pause
For each csv-file it should create/overwrite a file and append some content to it. However it doesnt work, the file won't be created.When I do it without a loop it work:
echo TEST1 >test.txt
echo TEST2 >>test.txt
I am not very familiar wich cmd commands, but what is here the problem. I need the %%F (filename of the csv) because I use it later in the for-loop