both work fine.TC x32 and/or x64?
I've took a look into that and should confirm author's note about the necessity of the last -1.See the tooltip in the example.
Without it - after pasting the code into the V.bar of Total - this button does not work as suggested.
It could only open (in supplied corresponding editor) the existing picked file and that's all.
I could fix this button only by opening the editor for this button and pressing OK in it.
So please - in ALL you codes - when you show some buttons: provide FULL code, even with -1 at the end.