Folder exclusion syntax for WinRE bootable version
Using the latest build WinRE bootable media, I created Disk mode backups. I wanted to exclude certain folders. What I found is that if the folder is in the root, I can just enter the folder name on the exclusion list (no backslashes) and it is properly excluded. But if I want to exclude a subfolder, it does not work.
For example, in the exclusion list:
ToBeDeleted
ProgramData\ToBeDeleted
The first line will exclude C:\ToBeDeleted.
The second line will not exclude C:\ProgramData\ToBeDeleted or any of its files.
I suppose I could change the second line to read:
ProgramData\ToBeDeleted\*.*
but that's not quite what I want.
Opinions?


- Log in to post comments

Bringing up an old post because I've just done a disk backup from WinRE media and discovered that it did not exclude a subfolder using just the folder name or using the *.* wildcards.
Anyone know how to eliminate a subfolder (something below the disk root) in its entirety from the backup?
- Log in to post comments

I got it to work. Enter it like this:
C:\ProgramData\ToBeDeleted\
Note that it doesn't matter if C: is the drive letter assigned to the partition in WinPE. The drive letter will be ignored. I figured it out by looking at the help question mark in the Add exclusion box in WinPE.
- Log in to post comments

Thanks! That seems to have done it.
- Log in to post comments

You're welcome. I did find it worked with and without the trailing \.
C:\ProgramData\ToBeDeleted\
C:\ProgramData\ToBeDeleted
Both commands worked.
- Log in to post comments