7zip For Winxp

0 views
Skip to first unread message

Athenasby Regalado

unread,
Aug 5, 2024, 11:33:47 AM8/5/24
to cyasoteta
Theres a long running thread here of people asking/voting for one-step handling of tgz and bz2 files. The lack action thus far indicates it's not going to happen until someone steps and contributes meaningfully (code, money, something).

Old question, but I was struggling with it today so here's my 2c. The 7zip commandline tool "7z.exe" (I have v9.22 installed) can write to stdout and read from stdin so you can do without the intermediate tar file by using a pipe:


You're using Windows XP, so you should have Windows Scripting Host installed by default. With that being said, here's a WSH JScript script to do what you need. Just copy the code to a file name xtract.bat or something along those lines (Can be whatever as long as it has the extension .bat), and run:


By default, the script will check the folder of the script, as well as your system's PATH environment variable for 7z.exe. If you want to change how it looks for stuff, you can change the SevenZipExe variable at the top of the script to whatever you want the executable name to be. (For instance, 7za.exe or 7z-real.exe) You can also set a default directory for the executable by changing SevenZipDir. So if 7z.exe is at C:\Windows\system32\7z.exe, you'd put:


Hello Igor,

when i use your command, the zip-File is extracted in the same folder and the name of the extracted file is "file".

I don't want to do a fullextract. The zip-File should be extract and in the same time used by the import. So i have no additional file.

Am i wrong with your idea?


file=- is just a guess on my part, in some programs setting the input file equal to - means use stdin as input file, but it is not universal: 7zip for one has the option -si to do just that, for instance


Building on @PA.'s answer (remember to remove the @echo when you've verified that the output is what you want), if you want to preserve the directory structure inside the zip file, use the x command instead of e:


Here it is, all condensed. The following is a batch script that will work for all zip files in the current folder (assuming 7zip is installed). It defaults to echoing what commands would run and only runs when you pass in /y (as in, yes, please do the unzipping now).


7-Zip is a handy tool that helps you work with lots of different file types, like its own 7z, as well as ZIP and RAR files, among others. It shines in its ability to both compress and decompress files, offering support for additional file types like ISO, CAB, and ARJ. Its encryption capabilities ensure that users can secure their archives with strong password protection, and it even allows for the creation of self-extracting archives for easier access and distribution.


The program is designed to be user-friendly, featuring a straightforward interface that integrates seamlessly with Windows' file explorer. This makes it easy for users to manage their files directly from the desktop, complemented by a dual-panel file viewer that simplifies file transfer and organization. 7-Zip's compatibility with Windows and preliminary support for Linux users, alongside its availability for systems akin to Linux through the p7zip version.


It has a clean look that makes it easy to navigate, and you can even change how it looks to suit your style. One of the best things about 7-Zip is how well it compresses files, making them smaller so they're easier to share or store. It can also open certain types of files directly, which is pretty handy. Plus, your files are kept safe with strong encryption. 7-Zip is completely free.


Mostly, though, it's built for Windows, working on versions from XP all the way up to Windows 10. But with the p7zip version, even Linux users can get in on the action. It's made to be simple and straightforward, so anyone can use it without too much trouble.


Archive files in different formats and manage them. Very easy to use interface. Supports formats like 7z, plus ZIP, RAR, and more. Can also unpack different file types like ISO, CAD, and CRJ. Offers strong password protection.


The main features of 7-Zip: High compression ratio in new 7z format with LZMA compression. Supported formats: Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR; Unpacking only: ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z. For ZIP and GZIP formats 7-Zip provides compression ratio that is 2-10 % better than ratio provided by PKZip and WinZip. Self-extracting capability for 7z format. Integration with Windows Shell. Powerful File Manager. Powerful command line version.


PeaZip is a free filearchiverutility, similar to WinRar, WinZip, and 7-Zip (or File Roller, and Arkon Linux), based on Open Source technologies of 7-Zip / p7zip archiver, Facebook Zstandard compressor,FreeArc, GoogleBrotli compressor, PAQfamily of compressors, PEA(archiving and encryption) project, and other Free Software filecompression tools.


Synopsis: All downloads pageofPeaZip free archiver utility, freeware file compression and encryptionsoftware. Download Open Source, cross platform file archiver softwarefor Linux, macOS, and Windows. Open, extract RAR TAR ZIP files and manyotherarchive types,200+ formats supported.


Luckily, you can open VMDK files with WinZip, Linux Reader or VMware Workstation Player. Read on to learn about the methods to recover the content of VMDK virtual disk files. Note that these methods only apply if the virtual disk is not encrypted or corrupted.


VMDK is a virtual machine disk file format, which is the open format developed by VMware. This virtual disk format has the .vmdk extension for files and is used by VMware and VirtualBox virtual machines. However, virtual machines residing on ESXi servers use a slightly different format of vmdk virtual disks. On the ESXi datastore, the virtual disk descriptor and the virtual disk extent that contains raw data of the virtual disk are two separate files.


The pattern of the virtual disk descriptor name is diskname.vmdk and the pattern of the virtual disk extent name that contains all raw data is diskname-flat.vmdk. As for virtual disks of the VMware Workstation format, they are represented as a single diskname.vmdk file (monolithic sparse), which is an extent data file containing an embedded virtual disk descriptor. A virtual disk descriptor defines the structure of the virtual disk, virtual disk geometry, virtual hardware version, and IDs.


A virtual disk descriptor is represented as plain text. On the left side of the screenshot below, you can see a virtual disk descriptor of the ESXi format (a vmdk file that can be opened with any text editor). On the right side of the screenshot, you can see the data of the virtual disk descriptor that is embedded into a single vmdk file of the VMware Workstation format. The vmdk file can be opened in a HEX editor.


As you can see, the embedded disk descriptor data is written to the monolithic vmdk file of the Workstation format from the 0x200 address, which is the number of the first byte. If you transform the 200 HEX value into a binary and decimal format, you will get:


This means that if you want to extract the embedded descriptor from the vmdk file, you should extract a portion of data starting from the 512th byte. You can find more information on VMware virtual disk descriptor files and learn how to extract, edit, and import an embedded virtual disk descriptor in the blog post about converting VMware VMs to Hyper-V VMs.


To open VMDK files by powering on existing VMs, you need a hypervisor such as VMware ESXi, VMware Workstation, VMware Player, or Oracle VirtualBox to be installed on your physical computer. You can opt for the legacy method by using a live DVD or by mounting the VMDK file as a virtual disk.


The idea behind this method is that you have a VM and can boot from a DVD disc. The ISO disk image can be used as the DVD disc inserted into the virtual DVD drive of the VM. After booting the operating system from a DVD media, you can mount the partitions of your virtual disk and copy files from the virtual disk to a USB hard disk attached to the VM or to your host machine, or to any other machine via the network. Some Live DVD distributions mount disks (partitions) automatically.


This is a legacy method because the principle is similar to copying files from physical disks of physical computers when the installed operating system cannot boot. This method can be used to extract data from VMDK disks of VMs running on VMware ESXi and VMware Player/Workstation.


Be aware that the operating system booted from Live DVD must recognize file systems of partitions of your virtual disk whose files you want to access. For example, Windows cannot work with Linux file systems such as EXT3, EXT4, ReiserFS, etc., by default. Using additional tools on Windows may help to resolve this issue. In turn, modern Linux recognizes Windows file systems such as NTFS and FAT32, and this is why you can use Linux-based Live DVD discs to copy files stored on virtual disks used by your Windows VM that cannot boot.


NOTE: The workflow for newer versions of the products considered in this blog post is the same. You can use VMware Workstation 17, ESXi 8.0, Windows Server 2019, Ubuntu Linux 22.04, etc., and use the working principle explained in this article.


This method is similar to the previous one, but in this case, the VMDK virtual disk should be attached to an existing virtual machine that has a functioning operating system. You can attach a VMDK file as an additional virtual disk to an existing VM running on an ESXi host, VMware Workstation, and VMware Player.


Keep in mind that the functioning operating system on the first (healthy) VM must be compatible with file systems used on the virtual disk of the second VM that has a non-bootable operating system (a VM whose VMDK file you want to attach as an additional virtual disk to extract files).


This example is similar to the previous one, but a VM running on VMware Workstation is used to open VMDK files of the ESXi VM. This method can be used when there is no free disk space on the ESXi datastore to copy a virtual disk, for example. A virtual disk of the Win-test2 VM that was mentioned in the previous example will be mounted to a VMware Workstation VM to extract its content.

3a8082e126
Reply all
Reply to author
Forward
0 new messages