Jump to content

Makecab subdirectories


Recommended Posts

Posted

Hello,

I have found this script :

@echo Off
title MakeCab all files in current directory
FOR %%L IN (*.*) DO makecab %%L /L /D CompressionType=LZX /D CompressionMemory=21 ".\Cab"
exit

It makes al files named name.dl_ and so on.

How can I make this run also in subdirectories ?


Posted

dont know if this will work, its just a thought

@echo Off

title MakeCab all files in current directory

FOR %%L IN (DIR /S /B *.*) DO makecab %%L /L /D CompressionType=LZX /D CompressionMemory=21 ".\Cab"

exit

Posted

That's because the code supplied was wrong.

Could you please explain exactly what you want to do.

Examples:

  1. cab all files individually in a directory and all it's subdirectories, placing the cabbed versions in their original locations
  2. cab all files individually in a directory and all it's subdirectories, placing the cabbed versions in their original locations but overwriting the originals
  3. cab all files individually in a directory and all it's subdirectories, placing the cabbed versions into a single specified location
  4. create a cab archive containing all files in a directory and all its subdirectories
  5. create a cab archive containing all files in a directory and all its subdirectories maintaining the tree structure
  6. none of the above (please specify)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...