Create button/command/whatever to make par2 files.

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Create button/command/whatever to make par2 files.

Post by *hlloyge »

Hello all!

I am trying to make button which would take selected folder as parameter and create par2 files in destination folder, with the same name as source folder.
So, imagine I have this on left side:

Selected Photograph

When selected and button pressed, in target directory there should exist Selected Photograph.par2 file.

Command I am using is this:

Code: Select all

par2j64.exe c /rr5 "e:\CRC\Selected Photograph.par2" "y:\Photos\Selected Photograph\*"
I've visited ButtonBar wiki, but it's written by someone who knows what which parameter does, and there are no examples for people who don't know and are starting from beginning. It's almost useless for me. I am aware I have to replace paths with special parameters, but I don't know which ones, as the descriptions are not helpful for beginners. I'd like to achieve few things, if possible:

First, if possible, to select several folders and get several par2 files, with the filenames reflecting source folders (they all do have subfolders and files, but par2 will go to subfolders without problem)
Second, if first is not possible, to mark/select source folder, press button, and get par2 file in destination.

How would I achieve that? Is there better help page which would help me achieve my goals?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Create button/command/whatever to make par2 files.

Post by *Horst.Epp »

The Wiki is not the help.
All info about possible parameters is clearly In the help while you are creating a button.
So just read it.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Re: Create button/command/whatever to make par2 files.

Post by *hlloyge »

OK, I've managed to make it work, but not with selected folder - I have to enter the folder and press the button, than the command works.

Button options are like this:

Code: Select all

Command: par2j64.exe
Parameters: c /rr5 "%T\%B-.par2" "%P*"
Start path: empty
Parameters are as follows:

Code: Select all

c = create PAR2 files
/rr5 = redundancy rate 5%
"destination" = target_path\directoy_name_source.par2
"source" = full_source_path_with_backslash star_means_all_files_and_folders_inside
Now, is there a way to just select source folder, without entering it, to be able to make par2 files out of it? With these parameters, it will make par2 files of all folders and files in current folder regardless of my selection. I just can't find the needed option in help, so I am guessing it can't be done.
User avatar
solid
Power Member
Power Member
Posts: 755
Joined: 2004-08-09, 11:20 UTC

Re: Create button/command/whatever to make par2 files.

Post by *solid »

Use
%P%N
instead of just %P
That way the selected dir will be expanded to command line.
You can use question mark (?) in front of all parameters, to display the dialog box with expanded parameters.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Re: Create button/command/whatever to make par2 files.

Post by *hlloyge »

? as the first parameter causes a Dialog box to be displayed before starting the program, containing the following parameters. You can change the parameters before starting the program. You can even prevent the program's execution.
Not following, but expanded, finalized - I thought it meant it will show me which parameters did I use in command and allow me to change them.
This one helped a lot, thank you for pointing me to it - I've corrected the mistakes I made and now I'm getting somewhere :)
Post Reply