====Cygwin: 7-Zip==== I reloaded cygwin this week and have been having a ball with it. I want to get a new laptop and load ubuntu on it. In the meantime, I honing my linux skills at work and with cygwin. One thing that makes linux magic is bash scripting. It certainly helps in doing back-ups. But I wanted to us 7-zip for it. After a couple hours poking around on the web, I discovered the documentation packaged with 7-zip and got it to do want I want it to do. What was missing on the web were some practical examples. I've provided a few below (adjust paths appropriately): ==Command Line== %%(bash) # command > /cygdrive/c/Program\ Files/7-zip/7z.exe # command: add / 7z format / target file / source file > /cygdrive/c/Program\ Files/7-zip/7z.exe a -t7z c:/cygwin/ad_inf/archive.7z c:/cygwin/ad_inf/seed7z.txt # command with password: add / 7z format / target file / password / source file > /cygdrive/c/Program\ Files/7-zip/7z.exe a -t7z c:/cygwin/ad_inf/archive.7z -pPassword c:/cygwin/ad_inf/seed7z.txt # with piping > echo 'this is a test' | /cygdrive/c/Program\ Files/7-zip/7z.exe a -t7z -siinput_stream.txt -aPassword c:/cygwin/ad_inf/piped_input.7z %%