7-Zip tip – Quickly extract into a particular folder

If you need to extract a file into a particular folder, what do you normally do? Some people may copy the Zip file into the destination folder, and then unzip it. Others may launch their unzip tool of choice’s file manager and use the unzip wizard to point to the destination folder.

7-Zip provides a handy way to do this. All you need to do is right-mouse-drag the Zip file to the destination folder, release the right-mouse button, and go to 7-Zip –> Extract … from within the context menu.

20-10-2011 101712

20-10-2011 101905

I’d been using 7-Zip for years before I figured this one out.

Tools of the trade, AKA tools I couldn’t do without: 7-Zip

Another tool that I install straight away on new PCs is 7-Zip. I’m still amazed to see IT pros using unregistered (or dodgy) versions of WinRAR and WinZIP. 7-ZIP is better, faster, and free (open-source).

It can handle lots of formats, including ISO files, which I sometimes find handy.

7-Zip’s main features, as per their website. I’ve highlighted some of the formats that I regularly use 7-Zip with:

  • High compression ratio in 7z format with LZMA and LZMA2 compression
  • Supported formats:
    • Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
    • Unpacking only: ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
  • For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip
  • Strong AES-256 encryption in 7z and ZIP formats
  • Self-extracting capability for 7z format
  • Integration with Windows Shell
  • Powerful File Manager
  • Powerful command line version
  • Plugin for FAR Manager
  • Localizations for 79 languages

Where: http://www.7-zip.org/
License: GNU LGPL – http://www.7-zip.org/license.txt

Server 2008 R2: Online license edition upgrade

I’ve had to google this a few times, so I’ll blog the results here for future reference.

It’s possible to upgrade, for example, a Server 2008 R2 Standard server to Enterprise without rebuilding Windows. This is all covered in detail on the MS TechNet blogs.

The command to do so is:

DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

To view what “editions” are available to upgrade to, do this:

DISM /online /Get-TargetEditions

I had issues using a valid VLSC key in this process. A comment by Brendan P of Microsoft explains why this is the case:

MAK keys map to multiple editions, so the underlying infrastructure doesn’t accept them. If you use the generic KMS client key, as Matthew suggests, that will allow you to proceed with the upgrade, and then you can either replace the key with a valid MAK post-upgrade or just use the KMS client key to activate against your internal KMS server.

The full list of KMS client keys can be found here on TechNet: technet.microsoft.com/…/ff793406.aspx

The command I ended up running to upgrade Server 2008 /w SP1 Standard (VL) to Enterprise was:

DISM /online /Set-Edition:ServerEnterprise /ProductKey:489J6-VHDMP-X63PK-3K798-CPX3Y

The successful run looks like this:

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 Starting to update components...
Starting to install product key...
Finished installing product key. Removing package Microsoft-Windows-ServerStandardEdition~blah [==========================100.0%==========================] Finished updating components. Starting to apply edition-specific settings...
Restart Windows to complete this operation.
Do you want to restart the computer now (Y/N)?