in reply to Compress and uncompress directories using perl on Windows without disturbing the internal directory structure

You could look at using the Archive::Zip module (see also Archive::Zip::FAQ), and it's addTree method. See (Installing Modules from the Tutorials section). If one drive is low on disk space ensure you write zip files/temp files to a drive which isn't low on space. Windows allows you to browse and extract the contents of Zip files with Windows Explorer, thought Archive::Zip can also do extraction.

  • Comment on Re: Compress and uncompress directories using perl on Windows without disturbing the internal directory structure
  • Download Code

Replies are listed 'Best First'.
Re^2: Compress and uncompress directories using perl on Windows without disturbing the internal directory structure
by prerna1 (Initiate) on Mar 18, 2012 at 14:46 UTC
    Can you please provide a short coding for the same? " I do have a coding, but its not working on Windows in shell script" tar cpf - sp |(chdir ${A}\\${B}\\Base; tar xpf -)

      The second link I provided has working code.