Axcrypt button bar - how to encrypt/decrypt multiple files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
josephlo
Junior Member
Junior Member
Posts: 15
Joined: 2013-11-16, 07:12 UTC

Axcrypt button bar - how to encrypt/decrypt multiple files

Post by *josephlo »

Hi,

I am trying to setup Axcrypt as a custom button on the icon bar. The axcrypt command line to encrypt a file is

axcrypt.exe -z filename.ext

and I am able to define the button such that
command = c:\program files\axantum\axcrypt\axcrypt.exe
parameters = -z %P%N

So when I select a file and press this button, the file will be encrypted.

But it does not work when I select multiple files.

I would like to know how to parse multiple files to total commander. What is the correct syntax? I googled but I did not get many relevant hits.

Many thanks
Joseph
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

TOTALCMD.CHM wrote:%S insert the names of all selected files into the command line. Names containing spaces will be surrounded by double quotes. Please note the maximum command line length of 32767 characters.
josephlo
Junior Member
Junior Member
Posts: 15
Joined: 2013-11-16, 07:12 UTC

Post by *josephlo »

Thanks White for your response.

When I substitute -z %P%N with -z %S, AxCrypt returns with an error saying that the system cannot find the file specified.

I double checked the command line syntax to see if I parse the wrong parameter for axcrypt and

Code: Select all

AxCrypt.exe -z "1.doc" "2.doc" "3.doc"
works.

So I think Total Commander did not parse the right parameters show how...any ideas?

Thanks
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Try %P%S - it will pass names with paths so it will work if work folder for AxCrypt is not your active panel's one.
Also try to clear start path field in buton's parameters, it should help AxCrypt to find your files w/o full paths.
josephlo
Junior Member
Junior Member
Posts: 15
Joined: 2013-11-16, 07:12 UTC

Post by *josephlo »

Okay. I tried your suggestion. This is now working.

Command = "C:\Program Files\Axantum\AxCrypt\AxCrypt.exe"
Parameters = -z %P%S

I am happy.

Thanks White and MVV for the tips.
User avatar
white
Power Member
Power Member
Posts: 6015
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

josephlo wrote:Okay. I tried your suggestion. This is now working.

Command = "C:\Program Files\Axantum\AxCrypt\AxCrypt.exe"
Parameters = -z %P%S
Did you try using %S and clearing start path? If this works it would be better to use this because more file names will fit on the command line.
josephlo
Junior Member
Junior Member
Posts: 15
Joined: 2013-11-16, 07:12 UTC

Post by *josephlo »

Thanks White. I will keep the current configuration. Cheers.
Post Reply