WinRar Command Line File Compression - Files

I use this simple command to zip files to an archive using WinRar.

winrar a -afzip -ep1 "C:\ok.zip" "C:\ok" 

But if something works (for example, a simple .exe) from this directory, it gives me an error:

"The process cannot access the file because it is being used by another process."

Is there any switch that would even compress the files used.

I adhere to WinRar as my client recommended it.

But I would also like your recommendations, but do not think that the client will allow me to use anything else.

+4
source share
1 answer

-DH , according to http://acritum.com/software/manuals/winrar/

I did not check the official manual looking for it.

+6
source

Source: https://habr.com/ru/post/1493601/


All Articles