中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 15:03
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How to batch-compress multiple folders
Printable Version  2,347 / 11
Floor1 hjkk123 Posted 2007-08-23 13:58
初级用户 Posts 82 Credits 160
I have 50 folders under one folder.
Does anyone know how to use commands to compress each of them separately, preferably with passwords too, and run it in batch?
Compressing them one by one is too troublesome.

[ Last edited by hjkk123 on 2007-8-23 at 04:52 PM ]
Floor2 ccwan Posted 2007-08-23 14:10
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
Search for willsort
Floor3 hjkk123 Posted 2007-08-23 14:18
初级用户 Posts 82 Credits 160
'willsort' is not recognized as an internal or external command, operable program
or batch file.

Can you post willsort, and also give me an example?
Floor4 slore Posted 2007-08-23 14:20
铂金会员 Posts 2,478 Credits 5,212
....That's a forum member... he posted it before...

Take a look at RAR's command-line syntax
Floor5 hjkk123 Posted 2007-08-23 14:41
初级用户 Posts 82 Credits 160
Originally posted by slore at 2007-8-23 02:20 PM:
....That's a forum member... he posted it before...

Take a look at RAR's command-line syntax

Oh, sorry, I got it wrong. willsort isn't a command, it's a member. He has posted too much stuff, it's like looking for a needle in the sea

[ Last edited by hjkk123 on 2007-8-23 at 02:52 PM ]
Floor6 slore Posted 2007-08-23 14:53
铂金会员 Posts 2,478 Credits 5,212
Floor7 hjkk123 Posted 2007-08-23 15:00
初级用户 Posts 82 Credits 160
That's a lot, thanks!
So how do I solve my problem then? Please just help me write the code

[ Last edited by hjkk123 on 2007-8-23 at 03:07 PM ]
Floor8 hjkk123 Posted 2007-08-23 15:11
初级用户 Posts 82 Credits 160
Maybe I need to use the for command? My eyes are a bit blurry right now, could someone write it out step by step? Everyone was fed by someone when they were little.
Floor9 wudixin96 Posted 2007-08-23 15:27
银牌会员 Posts 931 Credits 1,928


Assuming the OP's WINRAR path is like this.

[ Last edited by wudixin96 on 2007-8-23 at 04:09 PM ]
Floor10 ccwan Posted 2007-08-23 15:59
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
I’m posting the code written by willsort.
Floor11 hjkk123 Posted 2007-08-23 16:04
初级用户 Posts 82 Credits 160
How do I add a password?
Floor12 ccwan Posted 2007-08-23 16:07
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
How to add a password was already posted in reply #6.


This way, 123 is the password.

[ Last edited by ccwan on 2007-8-23 at 04:12 PM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023