looking for command line interface for unzipping files


  1. Posts : 19
    win7-64 bit
       #1

    looking for command line interface for unzipping files


    i want to unzip files in a windows batch file , how can I in windows 2003 server OS ?
      My Computer


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Aliyesami,

    You may be able to use the "Expand" command to do so. :)

    Expand Command-Line Options
      My Computer


  3. Posts : 6,285
    Windows 10 Pro X64
       #3

    Install 7-Zip then use it in the batch file.

    >7z

    7-Zip [64] 9.30 alpha Copyright (c) 1999-2012 Igor Pavlov 2012-10-26

    Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
    [<@listfiles...>]

    <Commands>
    a: Add files to archive
    b: Benchmark
    d: Delete files from archive
    e: Extract files from archive (without using directory names)
    h: Calculate hash values for files
    l: List contents of archive
    t: Test integrity of archive
    u: Update files to archive
    x: eXtract files with full paths
    <Switches>
    -ai[r[-|0]]{@listfile|!wildcard}: Include archives
    -ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
    -bd: Disable percentage indicator
    -i[r[-|0]]{@listfile|!wildcard}: Include filenames
    -m{Parameters}: set compression Method
    -o{Directory}: set Output directory
    -p{Password}: set Password
    -r[-|0]: Recurse subdirectories
    -scs{UTF-8 | WIN | DOS}: set charset for list files
    -sfx[{name}]: Create SFX archive
    -si[{name}]: read data from stdin
    -slt: show technical information for l (List) command
    -so: write data to stdout
    -ssc[-]: set sensitive case mode
    -ssw: compress shared files
    -t{Type}: Set type of archive
    -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
    -v{Size}[b|k|m|g]: Create volumes
    -w[{path}]: assign Work directory. Empty path means a temporary directory
    -x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
    -y: assume Yes on all queries
      My Computer


  4. Posts : 19
    win7-64 bit
    Thread Starter
       #4

    i cant use utilities that are freeware so 7z is not an option .
    cant get the expand syntax to work . whats the syntax to unzip a file in another directory ?

    thanks
      My Computer


  5. Posts : 6,285
    Windows 10 Pro X64
       #5

    Okay, here is a way using native Windows: Can you zip a file from the command prompt using ONLY Windows&#39; built-in capability to zip files? - Super User

    Why can't you use 7-Zip or freeware. 7-zip explicitly grants permission to anyone, private or commercial to use it.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:06.
Find Us