I have a script to extract all the archives in a folder to folders with names of the archives, I want to modify that so it will extract only a single file from each archive (doesn't matter which one), it will behave as if there's a counter that will count 1 file and move to the next archive.
For example say we have the following files in the folder, each archive contains what's in the curly braces:
a.7z {folder{1.txt, 2.txt, 3.txt}}
b.7z {folder2{4.txt, 5.txt, 6.txt}}
c.7z {7.txt}
So running the script will result in having the following extracted (those are folders):
a{folder{1.txt}}
b{folder2{4.txt}}
c{7.txt}
Is this possible?
This is the script I currently have:
PATH %PATH%;"C:\Program Files\7-Zip";
7z x *.* -o*