So the file list is created - so far no problem, but in the !Dateiliste.txt the !Dateiliste.txt with 0 bytes is present, so it is listed. But the filter should actually prevent that the file list is included in the *.txt or not? in any case I find for it unfortunately small solution... Does anyone have any advice? Thanks a lot!
Now, it works but.... why?
the code: PRINT FOLDER FILTER ~(*!Dateiliste.txt) QUIET FLATVIEW=grouped TO=".\!Dateiliste.txt" FORMAT=!default
the symbol * must be absolutely directly before the !Dateiliste.txt, otherwise it does not work.
But why? shouldn't it theoretically work without asterisks?
It's because ~(xyz) on its own doesn't trigger the wildcard mode automatically. Currently it only triggers for strings containing * and ? (since those are not valid filename characters, they must be part of a wildcard).
We'll expand that to include | as well, but making it use ~ or ( or ) now could cause problems with existing commands, since those are also valid filename characters.
So we'll also make it so you can explicitly ask for a wildcard using wild:~(xyz).
In 12.25.1 beta (note: not 12.25), we'll aim to make this work: