Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: 7zip a folder

by dasgar (Priest)
on Nov 02, 2017 at 07:54 UTC ( #1202579=note: print w/replies, xml ) Need Help??

in reply to Re^2: 7zip a folder
in thread 7zip a folder

I'd suggest first reading the 7-zip help to learn how to use it's command line interface. You'll need to understand how to run the command outside of Perl before you can incorporate that command inside your Perl code.

I believe that the general syntax that you're looking for is:

"C:\Program Files\7-Zzip\7z.exe" a -tzip C:\my_data\ -r

However, putting that into your Perl code and trying to capture the output (STDOUT and/or STDERR) may be a challenge. I apologize for not being able to describe this using correct terminology. The 7z.exe is at times reusing lines in STDOUT to show progress. I could be wrong, but I think that behavior will causes challenges when trying to caputure output messages from the 7z.exe utility.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2021-09-19 15:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found