compress subfolders without keeping main folder in archive?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

compress subfolders without keeping main folder in archive?

Post by *byblo »

I have a lot of folders which are containing subfolders.

Need to compress them in batch,without keeping the main folder in the archive but keeping the subfolders structures.

for instance:

folder1\subfolder\file1
folder1\file2

folder2\subfolder\file1
folder2\file2

As result, it should end as 2 archive files (zip, rar, whatever) :

in archive named folder1.zip : subfolder\file1
in archive named folder1.zip : file2

in archive named folder2.zip : subfolder\file1
in archive named folder2.zip : file2

Is it possible with TC? (currently using TC8.0)
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Possible with TC 8.50
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2byblo

In the "Pack files" dialog box simply select "Create separate archives, one per selected file/dir"
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

petermad,

But pre-8.50 TC will pack upper level directories too - and byblo wants to avoid it. So new TC 8.50 option to leave out base dirs does exactly what he wants.
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MVV

I see - you are right TC 8.5 is needed for this task.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Oh that is very nice.

I'll try 8.5 then.

Thank you guys :)
Post Reply