• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Check inside zip files for empty file


Posts
3
#1
I'm recently noticed that some zip files that I store images on contain some empty image files "0 KB".
I'm just wondering if anybody knows of a quick way to scan a bunch of folders each with several zip each and then show which zip files contain empty files.

Thank you.
 

My Computer

System One

  • OS
    Windows 8
    Computer type
    PC/Desktop
    CPU
    3.00GHz (2 CPUs)
    Motherboard
    ASUS P5Q3 DELUXE
    Memory
    4096MB
    Graphics Card(s)
    NVIDIA GeForce GTX 260

broe23

Retired from the grind
VIP Member
Pro User
Central IL

Posts
3,468
#2
Use wither 7-zip or Winzip. Basic computing 101.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model Number
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Posts
3
#3
Seriously? Its that simple? I've been searching google for a week now.
Can you please be more specific though?
 

My Computer

System One

  • OS
    Windows 8
    Computer type
    PC/Desktop
    CPU
    3.00GHz (2 CPUs)
    Motherboard
    ASUS P5Q3 DELUXE
    Memory
    4096MB
    Graphics Card(s)
    NVIDIA GeForce GTX 260

Brink

Administrator
Administrator
mvp
Posts
23,575
#4
Hello icebeast, and welcome to Eight Forums. :)

Basically you would just need to open the .zip file with the 7-Zip program, and check the size to see if shows as 0 KB.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Ztruker

Well-Known Member
VIP Member
Guru
#5
Use 7z.exe (7-Zip executable). Something like

7z l c:\temp\*.zip

Put it in a batch file and process the output looking for 0 length files. I don't remember offhand how to do this but will see if I can come up with a batch file that works. Maybe someone else can provide it?????
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    [email protected]
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Posts
3
#6
I was looking for something that would check multiple files at once. I've been doing it manually but its taking way too long, at this rate I wont be finished until September.
 

My Computer

System One

  • OS
    Windows 8
    Computer type
    PC/Desktop
    CPU
    3.00GHz (2 CPUs)
    Motherboard
    ASUS P5Q3 DELUXE
    Memory
    4096MB
    Graphics Card(s)
    NVIDIA GeForce GTX 260

Ztruker

Well-Known Member
VIP Member
Guru
#7
The command I showed will check all the zip files in that folder. Add the -r switch to recurse directories too.

Try this from the Command line after you install 7-Zip.

7z l d:\temp\*.zip | find " 0 "

Change d:\temp to one of your folders.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    [email protected]
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH