hi,
if i extract a zip file, sometimes it has a folder in the archive, sometimes not.
After extract the structure can look like:
\pictures\pictures\001.jpg
\pictures\pictures\002.jpg
can i somehow identify such
parent and child folders with same name
and simplify the structure to:
\pictures\001.jpg
\pictures\002.jpg
Thank you!
PS: is there a way to automatically prevent these duplicates while extracting?
Extracting a zip, sometimes parent and child folders with same name
Moderators: Hacker, petermad, Stefan2, white
Re: parent and child folders with same name
I don't know of any way to do this with TC. WinRAR has an option in Paths > [X] Remove redundant folders from extraction path. 7-zip seems to have a similar option 7-Zip > Eliminate duplication of root folder.
Not sure if these can help, but I guess you can find out
.
Regards
Dalai
Not sure if these can help, but I guess you can find out

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: parent and child folders with same name
2Dalai
Hm. I didn't know that in 2014 -spe was added to 7-zip. Works:
Hm. I didn't know that in 2014 -spe was added to 7-zip. Works:
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Utils\7-Zip\7zG.exe x
%N -o"%O" -spe
wcmicons.dll,31
Unpack the archive into a folder without|duplicating a single folder with the same name
Overquoting is evil! 👎
Re: parent and child folders with same name
The solution, it might come handy for other users, not sure if i may link another forum but i try:
https://www.voidtools.com/forum/viewtopic.php?t=12907&e=1&view=unread#unread
https://www.voidtools.com/forum/viewtopic.php?t=12907&e=1&view=unread#unread
Re: parent and child folders with same name
2Terka
Another forum requires authorization. Why are you not satisfied with my button?
Another forum requires authorization. Why are you not satisfied with my button?
Overquoting is evil! 👎
Re: parent and child folders with same name
The public link is shorter https://www.voidtools.com/forum/viewtopic.php?t=12907
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator