Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by marto (Cardinal)
on Mar 14, 2012 at 18:08 UTC ( [id://959646]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://959646]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-24 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found