Bash Node - zip and secure file

Hi

I was trying to zip file and secure it with password but I do not know what I am doing wrong.

I call 7z.

Bash command:
C:\Program Files\7-Zip\7zFM.exe a 1.zip 1.txt - p$1$

Execution directory
C:\Users\Trunks\Desktop\test\

I was trying also this Bash command
C:\Program Files\7-Zip\7zFM.exe a C:\Users\Trunks\Desktop\test\1.zip C:\Users\Trunks\Desktop\test\1.txt -p$1$

But either way what I get is opened 7z interface within the location of Execution directory.

I think you want to use 7z.exe for command-line execution, instead of 7zFM.exe.

1 Like

I would also recommend IZArc instead of 7zip. It is free and has better compression rate.

1 Like

Thanks that did the trick. :grin:

2 Likes

I will keep that in mind. :blush:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.