|Thanks Wahine, that worked just fine. Yes logo.jpg and list.txt are in the same folder.|
Now I'll analyse the code, so I can understand it.
And if I want to do it like this, it doesn't work:
if not exist E:\test\rubbish\ md E:\test\rubbish
for /f "tokens=*" %%1 in (E:\test\list.txt) do (
copy E:\test\logo.jpg E:\test\rubbish\%%1>nul
%rar% a "E:\test\rubbish\" "E:\test\rubbish\%%1"
I also want to add every archive created in rubbish to be added to a .rar for every new file. I use windows 7 and I also have 7zip.