Another 7-zip script

Discuss and share scripts and script files...
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Another 7-zip script

Post by highend »

Line 359:

Code: Select all

$out_item_name = substr(out_item_name, 0, $last_dot_right);
out_item_name isn't a variable (it's missing the preceeding $-sign)...
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Another 7-zip script

Post by bdeshi »

line 359, subscript "_get_item_basename"

Code: Select all

         $out_item_name = substr(out_item_name, 0, $last_dot_right);
//                               ^ not a variable
ed. oh, I'm the runner-up. :kidding:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Another 7-zip script

Post by lukescammell »

Thank you both of you, I've updated the script on the previous page. Such a great set of scripting experts here :)
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Another 7-zip script

Post by PeterH »

lukescammell wrote:Thank you both of you, I've updated the script on the previous page. Such a great set of scripting experts here :)
Please give info behind The Bug on previous page: (resolved) :biggrin:
(I wasn't sure the red text related to this bug :whistle: )

Thanks :om:
W7(x64) SP1 German
( +WXP SP3 )

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Another 7-zip script

Post by lukescammell »

I've personally commented out lines 343 to 361 now that bug's been fixed, since it kind of conflicts with the whole "1 archive per file" functionality.

For example, if you had file.jpg and file.png selected and ran the "1 archive per file" function you will end up with a single file.7z with both files inside it – not what you were expecting. With the above lines commented out/removed, you end up with file.jpg.7z and file.png.7z

For my own uses, this is a general improvement even on archiving single files and I quite like being able to tell at a glance what type of file has been archived anyway.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Another 7-zip script

Post by lukescammell »

PeterH wrote:
lukescammell wrote:Thank you both of you, I've updated the script on the previous page. Such a great set of scripting experts here :)
Please give info behind The Bug on previous page: (resolved) :biggrin:
(I wasn't sure the red text related to this bug :whistle: )

Thanks :om:
Done.

Just need to get Plastic to update his first post now…
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

Post Reply