presidente
Goto Top

Dateien mit der Größe 0 KB innerhalb eines Ordners auflisten

Hallo Forum,

wie kann ich innherhalb eines Ordners alle Dateien mit 0 KB Größe auslesen und in eine Textdatei schreiben.


Danke und Gruß

Stefan

Content-Key: 203561

Url: https://administrator.de/contentid/203561

Printed on: April 20, 2024 at 01:04 o'clock

Member: Endoro
Endoro Mar 19, 2013 updated at 10:41:33 (UTC)
Goto Top
Hallo Stefan, an der Kommandozeile geht es so:
for %i in (*.*) do @if %~zi equ 0 echo %~i>>logfile.txt

for help, type "help for".

bb


PS: weil cmd nur bis ca. 2GiB rechnet ist folgendes besser:

for %i in (*.*) do @if "%~zi"=="0" echo %~i>>logfile.txt