I have a folder containing subfolders named A
, B
, C
, and some files like file1.doc
, file2.bat
, file3.doc
.
Is there any option of the WinRAR software so that, when I zip the folder,
I can tell it to exclude folder A
, .bat
, files and files whose name is file3.doc
?
Best Answer
You can automate compressing files with WinRAR and provide an exclusion list using a command line interface. You can exclude the files and folders using
-x
switch in the command.Run Command Prompt (
cmd.exe
) and type the following command:If you want to automate your GUI, you can add this command to a context menu when you right-click on a folder. You would need to add the following to the registry:
Refer to this document to learn how to modify the registry.
This is what you will get in the end: