{"video_id":"6rFd4LzxDaM","title":"Do you REALLY Have to Unzip Files?","channel":"Techquickie","show":"Techquickie","published_at":"2024-05-04T14:58:16Z","duration_s":275,"segments":[{"start_s":0.0,"end_s":3.56,"text":"If you've ever downloaded, well, anything through your web browser,","speaker":null,"is_sponsor":0},{"start_s":3.56,"end_s":10.6,"text":"you're probably familiar with the zip file, a compressed folder that often contains lots of other files in it.","speaker":null,"is_sponsor":0},{"start_s":10.6,"end_s":14.76,"text":"In Windows, a zip file will appear very similarly to any other folder.","speaker":null,"is_sponsor":0},{"start_s":14.76,"end_s":18.56,"text":"It'll just have a little zipper on the icon. Very cute.","speaker":null,"is_sponsor":0},{"start_s":18.56,"end_s":23.96,"text":"But have you ever noticed that if you try to open up a program directly from that zip folder,","speaker":null,"is_sponsor":0},{"start_s":23.96,"end_s":28.96,"text":"you'll get an error message which goes away only if you unzip the file first,","speaker":null,"is_sponsor":0},{"start_s":28.96,"end_s":35.16,"text":"but only sometimes. And then other times, you can just open up a zipped file without any extra baloney.","speaker":null,"is_sponsor":0},{"start_s":35.16,"end_s":43.48,"text":"Is there a method to this madness? To answer, it helps to understand why exactly the zip format is so common in the first place.","speaker":null,"is_sponsor":0},{"start_s":43.48,"end_s":50.0,"text":"Not only is it just fewer clicks to download one zip file instead of a bunch of individual ones,","speaker":null,"is_sponsor":0},{"start_s":50.0,"end_s":54.44,"text":"it also compresses the files so they take up less room on the server,","speaker":null,"is_sponsor":0},{"start_s":54.44,"end_s":59.16,"text":"use less network bandwidth, and take less time to download.","speaker":null,"is_sponsor":0},{"start_s":59.16,"end_s":62.2,"text":"Although these advantages have made the zip format popular,","speaker":null,"is_sponsor":0},{"start_s":62.2,"end_s":67.24,"text":"Windows can't directly interact with the data contained inside a zipped folder.","speaker":null,"is_sponsor":0},{"start_s":67.24,"end_s":72.2,"text":"And at first, this might seem confusing because you can just double-click a zip folder to open it,","speaker":null,"is_sponsor":0},{"start_s":72.2,"end_s":78.12,"text":"and there's the files, just like any other folder. But that functionality had to be added to Windows,","speaker":null,"is_sponsor":0},{"start_s":78.12,"end_s":83.76,"text":"and the operating system didn't even natively support extracting zip files in Windows Explorer","speaker":null,"is_sponsor":0},{"start_s":83.8,"end_s":87.4,"text":"until Windows ME came out in the year 2000.","speaker":null,"is_sponsor":0},{"start_s":87.4,"end_s":94.48,"text":"This is a major part of the reason that programs such as Winzip and Winrar were so popular during the 90s.","speaker":null,"is_sponsor":0},{"start_s":94.48,"end_s":101.96,"text":"They were necessary unless the compressed files that you needed to open came in something called a self-extracting archive.","speaker":null,"is_sponsor":0},{"start_s":101.96,"end_s":106.48,"text":"These had the decompression program built in so you would just download and run them,","speaker":null,"is_sponsor":0},{"start_s":106.48,"end_s":109.72,"text":"and they would spit out the uncompressed files automatically.","speaker":null,"is_sponsor":0},{"start_s":109.72,"end_s":118.4,"text":"But simply being able to open up and view a zip folder in File Explorer isn't the same thing as working with the files within.","speaker":null,"is_sponsor":0},{"start_s":118.4,"end_s":122.88,"text":"Whenever you double-click a file, like an EXE that's inside a zip folder,","speaker":null,"is_sponsor":1},{"start_s":122.88,"end_s":127.36,"text":"Windows actually unzips that file in the background without telling you.","speaker":null,"is_sponsor":1},{"start_s":127.36,"end_s":132.8,"text":"The whole process is invisible. Windows can't run the compressed version of the EXE,","speaker":null,"is_sponsor":1},{"start_s":132.8,"end_s":137.76,"text":"so the program is instead unzipped to a temporary folder and then it's run normally.","speaker":null,"is_sponsor":1},{"start_s":137.76,"end_s":141.6,"text":"But there's a way that you can actually see this happen for yourself.","speaker":null,"is_sponsor":1},{"start_s":141.6,"end_s":145.0,"text":"Next time you try to run an EXE directly from a zip folder,","speaker":null,"is_sponsor":1},{"start_s":145.0,"end_s":148.88,"text":"first open up a Run command using the Windows key and R,","speaker":null,"is_sponsor":1},{"start_s":148.88,"end_s":153.16,"text":"then type in this command to bring up your personal temporary folder.","speaker":null,"is_sponsor":0},{"start_s":153.16,"end_s":158.08,"text":"If you run the EXE now, you might be able to spot it in one of those subfolders.","speaker":null,"is_sponsor":0},{"start_s":158.08,"end_s":165.28,"text":"Now, the program might work fine if there aren't other files inside the zip that the program depends upon,","speaker":null,"is_sponsor":0},{"start_s":165.28,"end_s":168.56,"text":"but if there are, such as DLLs, you'll get an error message","speaker":null,"is_sponsor":0},{"start_s":168.56,"end_s":174.8,"text":"because the program can't access those files that it needs while they're still compressed inside the zip folder.","speaker":null,"is_sponsor":0},{"start_s":174.8,"end_s":180.48,"text":"That's why it's usually important to unzip or extract the entire contents of a folder","speaker":null,"is_sponsor":0},{"start_s":180.48,"end_s":188.72,"text":"before trying to do something like run an installer. And it's also why standalone files like images or text documents will typically work just fine","speaker":null,"is_sponsor":0},{"start_s":188.72,"end_s":195.36,"text":"without unzipping the entire folder first. An exception would be something like a text document that had images embedded in it","speaker":null,"is_sponsor":0},{"start_s":195.36,"end_s":201.12,"text":"that were also zipped in the folder. But not everyone likes waiting around for their zip folders to fully unzip,","speaker":null,"is_sponsor":0},{"start_s":201.12,"end_s":206.8,"text":"so if you're impatient like me, third-party tools like 7zip or Winrar do still exist","speaker":null,"is_sponsor":0},{"start_s":206.8,"end_s":210.64,"text":"and tend to be a little faster than Windows' built-in solution.","speaker":null,"is_sponsor":0},{"start_s":210.64,"end_s":215.76,"text":"Third-party solutions also usually offer better features than Windows' built-in compression support,","speaker":null,"is_sponsor":0},{"start_s":215.76,"end_s":219.04,"text":"especially if you're looking to create a compressed folder.","speaker":null,"is_sponsor":0},{"start_s":219.04,"end_s":224.72,"text":"They'll offer more efficient compression algorithms and stronger encryption for sensitive files.","speaker":null,"is_sponsor":0},{"start_s":224.72,"end_s":230.16,"text":"And don't worry, we won't tell on you if you never end up actually paying for Winrar.","speaker":null,"is_sponsor":0},{"start_s":230.16,"end_s":233.2,"text":"If you guys enjoyed this video, you can like or dislike depending on how you feel.","speaker":null,"is_sponsor":0},{"start_s":233.2,"end_s":237.76,"text":"If you really liked it, you can check out our video on how data compression works more generally","speaker":null,"is_sponsor":0},{"start_s":237.76,"end_s":243.36,"text":"and you can leave a comment if you have a suggestion for a future video. Just don't forget to subscribe so that you catch it.","speaker":null,"is_sponsor":0}],"full_text":"If you've ever downloaded, well, anything through your web browser, you're probably familiar with the zip file, a compressed folder that often contains lots of other files in it. In Windows, a zip file will appear very similarly to any other folder. It'll just have a little zipper on the icon. Very cute. But have you ever noticed that if you try to open up a program directly from that zip folder, you'll get an error message which goes away only if you unzip the file first, but only sometimes. And then other times, you can just open up a zipped file without any extra baloney. Is there a method to this madness? To answer, it helps to understand why exactly the zip format is so common in the first place. Not only is it just fewer clicks to download one zip file instead of a bunch of individual ones, it also compresses the files so they take up less room on the server, use less network bandwidth, and take less time to download. Although these advantages have made the zip format popular, Windows can't directly interact with the data contained inside a zipped folder. And at first, this might seem confusing because you can just double-click a zip folder to open it, and there's the files, just like any other folder. But that functionality had to be added to Windows, and the operating system didn't even natively support extracting zip files in Windows Explorer until Windows ME came out in the year 2000. This is a major part of the reason that programs such as Winzip and Winrar were so popular during the 90s. They were necessary unless the compressed files that you needed to open came in something called a self-extracting archive. These had the decompression program built in so you would just download and run them, and they would spit out the uncompressed files automatically. But simply being able to open up and view a zip folder in File Explorer isn't the same thing as working with the files within. Whenever you double-click a file, like an EXE that's inside a zip folder, Windows actually unzips that file in the background without telling you. The whole process is invisible. Windows can't run the compressed version of the EXE, so the program is instead unzipped to a temporary folder and then it's run normally. But there's a way that you can actually see this happen for yourself. Next time you try to run an EXE directly from a zip folder, first open up a Run command using the Windows key and R, then type in this command to bring up your personal temporary folder. If you run the EXE now, you might be able to spot it in one of those subfolders. Now, the program might work fine if there aren't other files inside the zip that the program depends upon, but if there are, such as DLLs, you'll get an error message because the program can't access those files that it needs while they're still compressed inside the zip folder. That's why it's usually important to unzip or extract the entire contents of a folder before trying to do something like run an installer. And it's also why standalone files like images or text documents will typically work just fine without unzipping the entire folder first. An exception would be something like a text document that had images embedded in it that were also zipped in the folder. But not everyone likes waiting around for their zip folders to fully unzip, so if you're impatient like me, third-party tools like 7zip or Winrar do still exist and tend to be a little faster than Windows' built-in solution. Third-party solutions also usually offer better features than Windows' built-in compression support, especially if you're looking to create a compressed folder. They'll offer more efficient compression algorithms and stronger encryption for sensitive files. And don't worry, we won't tell on you if you never end up actually paying for Winrar. If you guys enjoyed this video, you can like or dislike depending on how you feel. If you really liked it, you can check out our video on how data compression works more generally and you can leave a comment if you have a suggestion for a future video. Just don't forget to subscribe so that you catch it."}