I have the follwing command:
for %f in (*.txt) do "C:\WINDOWS\7za.exe" a -t7z "%f.7z" "%f"
which i send to a cmdprompt from a vba script. This works, but now I have to include the path to the folder on which to perform the zipping. I do this:
for %f in (usebackq "C:\Bob\WithBlank\NeuerOrdner3\" *.txt) do "C:\WINDOWS\7za.exe" a -t7z "%f.7z" "%f"
Why do i get one single zip file containing all *.txt files instead of one zip per txt file?