Computer Hope

Microsoft => Microsoft DOS => Topic started by: BM on April 06, 2008, 05:10:24 AM

Title: update mode in 7z..
Post by: BM on April 06, 2008, 05:10:24 AM
hi, 

how can i set update mode to "add and replace" when compressing files to .7z via cmd command?
what is the switch i must use??

Thanks in advance for any help...:)

Title: Re: update mode in 7z..
Post by: Dias de verano on April 06, 2008, 06:11:55 AM
Code: [Select]
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<Commands>
  a: Add files to archive
  d: Delete files from archive
  e: Extract files from archive
  l: List contents of archive
  t: Test integrity of archive
  u: Update files to archive
  x: eXtract files with full pathname
<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
  -sfx[{name}]: Create SFX archive
  -si: read data from stdin
  -so: write data to stdout
  -t{Type}: Set type of archive
  -v{Size}}[b|k|m|g]: Create volumes
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
  -w[{path}]: assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
  -y: assume Yes on all queries
Title: Re: update mode in 7z..
Post by: BM on April 06, 2008, 06:21:47 AM
yeah i used that before, but i did't find the one that sets the update mode to "add and replace"
Title: Re: update mode in 7z..
Post by: Dias de verano on April 06, 2008, 06:42:06 AM
I don't think you can do this in 7zip from the command line.
Title: Re: update mode in 7z..
Post by: BM on April 06, 2008, 06:48:39 AM
thank you Dias for reply