- Jul 29, 2014
- 4
- 0
- 0
Hi all,
I have a .bat file in which I have a Winrar command that zips up all the files in a particular folder (
). I want to zip all the files in this folder plus any files in any subfolders except that I want to exclude a particular subfolder (
). Here is what my command looks like
You can see that I have attempted to exclude the aforementioned subfolder by using the below option, but the attempted exclusion does not work. The rest of the command works.
How can I correctly exclude the given folder?
I have a .bat file in which I have a Winrar command that zips up all the files in a particular folder (
Code:
C:\Data
Code:
C:\Data\Cobian\Logs
Code:
WinRAR a -r -m0 -agYYYYMMDD C:\Users\Sachin\Desktop\ C:\Data -x*\C:\Data\Cobian\Logs -x*\C:\Data\Cobian\Logs\*
You can see that I have attempted to exclude the aforementioned subfolder by using the below option, but the attempted exclusion does not work. The rest of the command works.
Code:
-x*\C:\Data\Cobian\Logs -x*\C:\Data\Cobian\Logs\*
Last edited: