Re: creating multiple zip arhives?



Hello,

The folder structure has about 25 folders in the top level and each of these
contain subfolders and some of the subfolders contain subfolders. Maximum
depth of the structure in 3 levels down.

I need the zip's to and up in the same folder with the source files. These
zip's are used to upload pics to a web site so they need to be zipped
normally in order to meet the web applications requirements. Only workaroun
to this would be to upload all pics manually one by one which takes about 7
years to do ;-)

Thanks
-Will


"Adam Piggott" <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> kirjoitti
viestissä:430ddbf8$0$38040$5a6aecb4@xxxxxxxxxxxxxxxxxxxx
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> William Stokes wrote:
>> Hello,
>>
>> I have about 2500 jpeg pictures in a different subfolders (in a same
>> tree).
>> There are about 10 pics in each folder. I need to compress these pics to
>> a
>> zip files. All pics in one subfolder to one zip file. So this means that
>> there should be about 250 zip files located in the same folder where the
>> original pics were.
>>
>> Any idea how to script this? I tried powerarchiver commandline with no
>> luck.
>> I'm not experinced enough in scripting so help is Very Much apreciated.
>
> Depending on the directory names, something along the lines of this should
> do: (which is run in the tree root and is run straight from the command
> line)
>
> for /R /D %I in (*) do zip "<target path>\%~nI.zip" "%~fI\*"
>
> I created three test directories: 1, 2 and 3. Inside all were a few dummy
> files. Inside 3 was a further directory, 3a, with a dummy file in it. The
> above command produced 1.zip, 2.zip, 3.zip and 3a.zip, all in the <target
> path> directory. One could also add the -m switch to delete source files,
> but only after careful checking of the output.
>
> If you could be a bit more specific about the directory structure and
> where
> you'd like the zip files to end up, the command could be tweaked if it
> doesn't provide what you need. I use the zip software from Info-ZIP:
> http://www.info-zip.org/
>
> If they're on an NT partition you could always enable file compression ;-)
>
> HTH
> - --
> 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)
>
> iD8DBQFDDdwN7uRVdtPsXDkRAosEAJ9+oZlV6grFb0RzGKvHKh3shIv0FACghebl
> mZPvim+j0Ctlvcb3uPDT8dA=
> =j1R+
> -----END PGP SIGNATURE-----


.



Relevant Pages

  • RE: Disappearing Network Share Subfolders
    ... Thank you for posting to the SBS Newsgroup. ... I understand that some of your Windows XP SP2 clients cannot view the ... subfolders in share folders on SBS 2K Server. ... Does the problematic share folder locate at NTFS or FAT32 disk? ...
    (microsoft.public.windows.server.sbs)
  • 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: Read path from text file to process directory structure
    ... Public Function fGetFolder(sFolderName As String) ... Dim FoldersArray As Variant ... 'Read all subfolders of the specified folder into an array ... 'The following string will contain the path of the folder which is currently ...
    (microsoft.public.word.vba.general)
  • 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: NTFS Permissions Question
    ... Answer is, modify includes delete, but not delete subfolders and files. ... subfolder(s) when delete is not inherited from the parent folder. ... with just the permission you need. ...
    (microsoft.public.cert.exam.mcse)