Datei-Tools für die Windows Kommandozeile
 
Home

  English Version of this page

Infos zur Windows-Kommandozeile

  FCB V1.0.4 - File Compare Binary - Ersatz für Windows FC.EXE
 
FCB ist ein Ersatz für die FC.EXE von Windows. FCB unstützt nur den Binär-Mode des Originals.

FC.EXE von Windows XP arbeitet nicht optimal: Bei großen Dateien belegt es bis zu 4GB Speicher (ab einer Dateigröße von ca. 1,8GB dann nicht mehr...).
Zudem werden die Dateien durch den File-Cache gelesen, selbst wenn klar ist, dass das wegen der Größe der Dateien nicht sinnvoll ist.

FCB ließt direkt von der Platte, Lesen und Vergleichen laufen parallel. Wenn die Dateien auf unterschiedlichen physischen Datenträgern liegen, erfolgt auch das Lesen parallel.
FCB ist praktisch immer schneller als das Original. Einzige Ausnahme ist das Vergleichen einer Datei mit sich selbst: FCB ließt hier wirklich die Daten zweimal, bei FC kommt die zweite Datei dann aus dem File-Cache.

FCB FileSpec1 FileSpec2 [-s][-p][-e:mask][-i][-sz][-fi:n][-st:n][-r:n][-q][-lv][-ld][-n]
-s    recurse subdirs (default if source is a folder)
-p    parse reparse points
-e    exclude mask (once for each mask)
-i    ignore different file sizes, compare up to smaller size
-fi:n first n bytes only
-st:n start at byte n
-sz   do not compare blocks which are zero only in file1 or file2
-sz1  do not compare blocks which are zero only in file1
-sz2  do not compare blocks which are zero only in file2
-r:n  retry n times on CRC or IO error (default 10)
-q    quiet mode (show summary only)
-lv   list volumes\n"
-ld   list disks\n"
-n    no wait for keypress on finish if started standalone
Dateien können über eine oder mehrere Ausschlußmasken vom Kopieren ausgenommen werden (Bsp: -e:*.tmp -e:*.bak).
Ab V1.0 hat FCB volle Unterstützung für lange Pfade (bis knapp 32768). Die Verzeichnis-Tiefe ist aber auf 1024 Ebenen begrenzt.
Um Tipparbeit zu sparen kann man statt \\.\PhysicalDrive123 \\.\PD123 übergeben, ebenso statt \\.\HarddiskVolume12 \\.\HDV12.
Mit Parameter -ld oder -lv listet es alle Disk bzw. Volumes auf.

Download: fcb.zip
(ca. 60KB)

Letztes Update: 20.11.2023

 

  FFC V1.7.6 - Fast File Copy
 
FFC ist für große Dateien optimiert. Es liest und schreibt immer ohne Dateicache, geschriebenen Daten können verifiziert werden (im Gegensatz zu XCOPY /v - das wird zwecks Kompatibilität akzeptiert, bewirkt aber nichts).
Wenn NTFS-Dateikompression im Spiel ist, gibt es zwangsweise einen Datei-Cache - das Vergleichen der Daten ist dann nichts wert da die Zieldaten aus dem Cache kommen.
Befinden sich unter den Quelldateien Hardlink-Gruppen, werden diese im Ziel so wieder angelegt.
Reparse-Points werden wie in der Quelle vorgefunden im Ziel angelegt. Wenn das Ziel des Reparse-Points Teil des Kopiervorganges ist, wird dessen Zielpfad auf des Kopier-Ziel korrigiert.
NTFS-Security-Attribute können kopiert werden (-sec), ebenso "alternative datastreams" (-ads).
Dateien können über eine oder mehrere Ausschlußmasken vom Kopieren ausgenommen werden (Bsp: -e:*.tmp -e:*.bak).
Ab V1.2 hat FFC volle Unterstützung für lange Pfade (bis knapp 32768). Die Verzeichnis-Tiefe ist aber auf 1024 Ebenen begrenzt.
Um Tipparbeit zu sparen kann man statt \\.\PhysicalDrive123 \\.\PD123 übergeben, ebenso statt \\.\HarddiskVolume12 \\.\HDV12.
Mit Parameter -ld oder -lv listet es alle Disk bzw. Volumes auf.
Weitere Infos in der FFC.txt.

FFC FileSpec1 FileSpec2 [-s][-o][-oo][-or][-k][-sr][-sw][-u][-h][-p][-sec][-ads][-cx][-lzx][-sp][-sz][-e][-v][-ve][-ds][-n]
-s     recurse subdirs (default if source is a folder)
-o     overwrite existing files
-oo    overwrite older existing files
-or    overwrite older existing files even they have the read-only attribute
-k     skip existing files
-sr    share read (by default FFC needs exclusive read access on devices)\n"
-sw    share write (by default FFC needs needs exclusive write access)\n"
-u     avoid unnecessary writes when overwriting exiting files
-h     create hardlinks instead copies (on same volume only)
-p     parse reparse points (instead of copying the reparsepoint itself)
       (reparse points which point to the source path are never parsed,
       the copy will point to the target path)
-mir   mirror: delete files at target which do not exist in source (be careful...)
-scan  scan target to find existing source file under different name or path
       avoiding unnessecary writes (very experimental): only valid with -mir
-t:nn  test size for -scan: to find existing identical files FFC scans by default
       1MB at start, middle and end of the file. With -t:nn a different test size
       can be set. Units as K, M, T can be used. -t:f for full scan
-sec   copy security attributes
-ads   copy alternative data streams
-c0    do not compress target
-c1    compress target if source is compressed as space was saved
-c2    compress target if space saving is expected (non zip, jpg, avi etc)
-c3    compress target even no space saving is expected
       (default is don't care, compression is inherited from parent folder)
-lzx   LZX compress target (Win10+)
-sp    set 'sparse file' attribute for target files (sparse bocks of 1 MB granularity)
-sz    skip all-zero blocks when writing (useful only when writing to devices)
-e     exclude mask (once for each mask)
-v     verify written data
-ve    verify written data and existing files
-r:n   on CRC or IO error retry read sectors n times, default is 10
-ds    delete source file(s)
-f     flush target volume's file cache (needs admin privileges)
-1     print file names into one line by shortening to the width of the console window
-q     quiet mode
-lv    list volumes
-ld    list disks
-n     no wait for key on finish if started standalone

Download: ffc.zip
(ca. 100KB)

Letztes Update: 06.08.2023

 

 
  FSF V1.1.4 - Find Same File - Suche nach Datei-Duplikaten
 
FSF sucht nach identischen Dateien in einem oder zwei Pfaden. Gefundene Duplikate können angezeigt, gelöscht oder durch Hardlinks ersetzt werden.
FSF ermittelt zunächst alle Dateigrößen denn nur gleich große Dateien kommen als identisch in Frage. Statt den gesamten Dateiinhalt zu vergleichen, kann man sich auf weniger beschränken, um Zeit zu sparen (Parameter -t).
Um bei einer sehr großen Anzahl von Dateien jene mit gleicher Größe schneller zu finden, werden die Dateilisten nach Größe sortiert, deshalb sind die Ausgaben nicht nach Verzeichnissen sortiert und sehen somit etwas merkwürdig aus.

FSF - Find Same File V1.1.4 (Win32) - Freeware by Uwe Sieber
Usage:
FSF FileSpec1 [FileSpec2] [-t:testsize][-m:minfilesize][-x:maxfilesize]
    [-i][-s][-n][-d][-h][...]
-t:size  test 3 blocks of this size only instead of the whole file
         e.g. -t:1M for testing 1 MB at file start, mid and end
-m:size  minimum file size to test, smaller files are skipped
         e.g. -m:1K for testing files larger than 1KB
-x:size  maximum file size to test, larger files are skipped
         e.g. -x:1M for testing file smaller than 1MB
-i   identical file names only
-s   scan subdirs 1+2
-s1  scan subdirs 1 (default if FileSpec1 is a folder)
-s2  scan subdirs 2 (default if FileSpec2 is a folder)
-r   scan reparse points 1+2
-r1  scan reparse points 1
-r2  scan reparse points 2
-fh  find hardlinks (by default hardlinks are not handled as identical files)
-ded delete emptied directories
-n   no wait for key on finish if started standalone
if duplicate found:
-d1  delete file1
-d2  delete file2
-d   delete the file which is more fragmented
-h   replace the file which is more fragmented by hardlink
-dsn delete the file with the shorter file name
-dln delete the file with the longer file name
-dsp delete the file with the shorter path name
-dlp delete the file with the longer path name
-do  delete the file with the older write date
-dn  delete the file with the newer write date
-e1  rename file1
-e2  rename file2
Wenn mit nur einem Ordner gearbeitet wird, gilt die Datei mit dem tieferen Pfad als File2.
Download: fsf.zip
(ca. 90KB)

Letztes Update: 21.05.2023

 

  ListLinks V1.6 - listet Reparse-Points, Symbolic Links und Hard-Links auf
 
ListLinks ist ein Kommandozeilen-Tool das folgendes auflistet:
  • Reparse-Points
    • Mount-Points: Verzeichnis-Einträge, die auf ein lokales Laufwerk oder andere lokale Verzeichnise verweisen
    • Symbolic Links: Datei- oder Verzeichnis-Einträge die auf andere Dateien bzw. Verzeichnisse verweisen, einschließlich im Netzwerk und mit relativen Pfaden
  • Hard-Links: Datei-Einträge die auf dieselben Daten (auf demselben Laufwerk) wie mindestens ein weiterer verweisen (jeder Datei-Eintrag auf einem NTFS-Laufwerk ist ein Hard-Link; typischerweise gibts aber pro Datei nur genau einen)
Es unterstützt nur Microsoft Dateisysteme, derzeit also NTFS und ReFS. Usage:
ListLinks FileSpec [-s]
-s   recurse subdirs
Sample:
ListLinks C:\* -s

Download: ListLinks.zip

Letztes Update: 31.10.2021

 

  SetFileSize V1.0 - Größe eine Datei ändern
 
Beispiele:
SetFileSize test.bin 1024

SetFileSize test.bin 0x400

SetFileSize test.bin 1024Ki
Untertützt werden folgende Einheiten:
Ki210 (1024)
Mi 220  (1024*1024)
Gi 230  (1024*1024*1024)
Ti 240  (1024*1024*1024*1024)
           
K 103  (1000)
M 106  (1000*1000)
G 109  (1000*1000*1000)
T 1012 (1000*1000*1000*1000)

Download: setfilesize.zip

Letztes Update: 06.07.2014

 



 

Uwe Sieber

Home: https://www.uwe-sieber.de/deutsch.html