Archive content listing
Posted: 26 Jun 2013 08:17
While trawling the net came across this batch file.
I have altered it slightly to include formats that I have bumped into. There are more formats which 7-zip will list.
This will also, with a little adjustment, work with IZArc2Go .
I of course cant leave anything alone so this is my attempt in XY scripting.
If you are going for depth then :- open find files
make sure your in the right folder to find your archives change "All types" to "Archive files" run search
select all and run this
I have this on the toolbar to give me a reminder.
"Archive LIST Single && this folder && to depth ->" msg "select one item first<br>if doing to depth then<br>make sure path(s) do not contain<br>commas,spaces or dots"; load (7zlisting);
What follows is 7zlisting.xys
Hope you find useful
totmad1 (totally mad one)
Code: Select all
FOR /F "tokens=* delims=" %%A in ('dir /b /s *.rar ; *.7z ; *.cab ; *.gz ; *.zip') do ("C:\Users\user\Documents\portaprogs\7-ZipPortable\App\7-Zip64\7z.exe" l -r "%%A" >> listingALL.txt)
This will also, with a little adjustment, work with IZArc2Go .
I of course cant leave anything alone so this is my attempt in XY scripting.
If you are going for depth then :- open find files
make sure your in the right folder to find your archives change "All types" to "Archive files" run search
select all and run this
Code: Select all
Writefile ("<curfolder>.txt", getinfo("SelectedItemsPathNames"), o);
"Archive LIST Single && this folder && to depth ->" msg "select one item first<br>if doing to depth then<br>make sure path(s) do not contain<br>commas,spaces or dots"; load (7zlisting);
What follows is 7zlisting.xys
Code: Select all
"_Initialize";
perm $p_zip = "C:\Users\user\Documents\portaprogs\7-ZipPortable\App\7-Zip64\7z.exe";
perm $p_note = "C:\Users\user\Documents\portaprogs\SynWrite\Syn.exe";
"listing single"
Run("cmd /c $p_zip l <curitem> > <curitem>.txt");
"list 1 and open txt"
Run("cmd /c $p_zip l <curitem> > <curitem>.txt");
wait 1000;
open "<curitem>.txt";
"listing all in this folder"
selfilter "*.rar ; *.7z ; *.cab ; *.gz ; *.zip";
$SelectedItems = get("SelectedItemsNames", "|");
foreach($Item, $SelectedItems, "|") {
rename s, " /"; // removes the spaces
Run("cmd /c $p_zip l $Item >> <curfolder>.txt");
wait 1000;
}
"To Depth:select txtList and list(txtList:- files in subfolders)"
$a = readfile("<curitem>");
foreach($Item, $a, "<crlf>") {
Run("cmd /c $p_zip l $Item >> <curfolder>.txt");
wait 1000;
}
-
"Edit script : edit"
$ScriptFile= self ("file");
run "$p_note" $ScriptFile,w;
-
"Cancel"
"_Terminate";
unset $p_zip;
unset $p_note;
totmad1 (totally mad one)