View Single Post
Old 01-18-2016, 09:35 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Batch file.

Code:
cd /User/Docs/
for i in */; do
    tar -czvf $i.tar.gz $i
done
There is the logical flow in unix bash, 'fraid you're on you own in converting to MS batch files.
Also investigate the WinRar cli syntax, if it has a cli backend that is -- but why oh why do you want to use RAR compression?
It is proprietary and not very interoperable.

Last edited by eschwartz; 01-18-2016 at 09:40 AM.
eschwartz is offline   Reply With Quote