BrainDump
  Home arrow BrainDump arrow Page 3 - Working with the Filesystem, Drives, Data,...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Working with the Filesystem, Drives, Data, and Search
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-07-12

    Table of Contents:
  • Working with the Filesystem, Drives, Data, and Search
  • File Compare (fc)
  • File Expansion Utility
  • File Properties

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with the Filesystem, Drives, Data, and Search - File Expansion Utility


    (Page 3 of 4 )

    \windows\system32\expand.exe

    Extract one or more compressed files from a cabinet (.cab) file.

    To open

    Command Prompt -> expand

    Usage

      expand -d source.cab [-f:files]
      expand [-r] source.cab [destination]
      expand source.cab -f:files destinatio
    n

    Description

    A cabinet file is a compressed archive commonly used to package application installation files. You use the File Expansion Utility to extract files embedded in these cabinet files. The utility takes the following options:

    source.cab

    The name of the cabinet (.cab) file from which to extract the files.

    destination

    The name of the folder in which to place the extracted files, a new filename to use for the extracted files, or a combination of the two. If using the -f option, destination is mandatory and must include a filename (with or without wildcards).

    -d

    Display (list) the contents of the specified cabinet file.

    -r

    Specify -r (recursive) without destination to extract all the files contained in the specified cabinet file. For example:

      expand -r package.cab

    Specify -r along with destination to rename the files according to the file specification included in destination . For example, the following extracts all the files in package.cab and renames their file extensions to .txt:

      expand -r package.cab *.txt

    -f:files

    Use the -f option to specify one or more files to extract; use this if you don't want to extract all the files from the cabinet file. For example, the following extracts the file uno.txt from package.cab:

      expand package.cab -f:uno.txt uno.txt

    Note that the destination  parameter is mandatory when using the -f option and is used to specify the target filename. In this example, as well as most times this program will be used, files and destination  will be the same.

    Notes

    • The easiest method for extracting files from cabinets is to simply double-click the .cab file in Explorer and then drag the desired file(s) out. You can also use it when installing or repairing Windows Vista when Explorer isn't available.

    See also

    "Cabinet (CAB) Maker," in Chapter 10

    More BrainDump Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows Vista in a Nutshell," published by...
     

    Buy this book now. This article is excerpted from chapter four of the book Windows Vista in a Nutshell, written by Preston Gralla (O'Reilly, 2006; ISBN: 0596527071). Check it out today at your favorite bookstore. Buy this book now.

    BRAINDUMP ARTICLES

    - XAML Brushes and Silverlight
    - Silverlight and XAML Basics
    - Immortal XP
    - XAML Basics
    - Microsoft Surface
    - Making Your First Active X Control in Visual...
    - Codes and Packages in Microsoft Project 2007
    - Windows 7: Rumors and Demos
    - XP SP3 Why Me?
    - Breaking Up Your Work in Microsoft Project
    - Breaking Work into Task-Sized Chunks
    - Putting Microsoft`s Worldwide Telescope Unde...
    - Handling Multiple Contracts with Indigo
    - Cleaning Out Your Data in XP
    - Multiple Service Contracts and Indigo





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway