Re: creating multiple zip arhives?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dani wrote:
> I need something similar, I need to compress a folder, with some
> subfolders and with many files in every subfolder, in one ZIP (o RAR
> file), inside the ZIP I must have the folder structure and the files,
> and from the source only delete the files, not the folders.
>
> Any idea?

Well the documentation for Info-ZIP's zip.exe should give you a good start
(i.e. recursive, directory structure). As for deleting the source *files*
and not directories, maybe the For command would be useful again:

for /R %I in (*) do echo del "%~fI"

....in the directory would only delete the files.

*BE CAREFUL WITH THIS COMMAND*
Run it from C: or Program Files etc. and you'll nuke your computer. Remove
"echo" for it to actually work.

I'd strongly advise reading on Windows' Help regarding use of the For
command as it's very handy.

Cheers
- --
Adam Piggott, Proprietor, Proactive Services (Computing).
http://www.proactiveservices.co.uk/

Please replace dot invalid with dot uk to email me.
Apply personally for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDDgfP7uRVdtPsXDkRAvFoAJ0aEyiaUeLEgP2ytvfOZ037I8yNRgCfWBsf
MZKq4+5ZU3u6Kl+Plp4XIuk=
=WWPU
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: creating multiple zip arhives?
    ... contain subfolders and some of the subfolders contain subfolders. ... I need the zip's to and up in the same folder with the source files. ... (which is run in the tree root and is run straight from the command ... > Please replace dot invalid with dot uk to email me. ...
    (microsoft.public.scripting.wsh)
  • Re: creating multiple zip arhives?
    ... > I have about 2500 jpeg pictures in a different subfolders (in a same tree). ... (which is run in the tree root and is run straight from the command line) ... Please replace dot invalid with dot uk to email me. ...
    (microsoft.public.scripting.wsh)
  • Re: Copy multiple files into a single file - xcopy?
    ... files from these subfolders into a single folder (in order to use "copy" in ... command prompt) because there are files in the different subfolders with the ...
    (microsoft.public.windowsxp.general)
  • Re: "found.000"
    ... folder and look at the File Properties to really see what's what. ... Microsoft Windows XP Inside Out Deluxe, ... subfolders and files]] ... >> Although attrib is similar to the DOS command, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: directory sorting problem?
    ... i have a file folder with name FOLDER, ... subfolders under FOLDER directory. ... Use the 'dir' command to obtain a structure that contains the contents of the specified directory. ...
    (comp.soft-sys.matlab)

Loading