I examined a few topics How to exclude folders which contain a pattern except when under a certain folder?, "Add Custom Folder" for beginners ...,, To temporarily exclude folder, and What am I doing wrong,why can't I exclude specific folder? after Searching topics from the past year. and do not yet see a clue.
Because an application ("WbWrd") requires that the folder on which I operate belongs under the root of a drive, I have mapped (SUBST) drive W: to the folder T:\Greaves\Admin\Domains on my data partition T:
Hence W: for my Web domains.
Drive T:, my data partition, already appears under the FAT section, as it should.
Now I add drive W: to that FAT section.
In the Result List, searches show TWO copies of documents, images etc. One copy is pathed as W:, and the second copy is pathed as T:\Greaves\Admin\Domains.
My simplistic view is that I would like to Exclude the folder T:\Greaves\Admin\Domains, so I went into Tools, Options, Indexes, Folders and hoped to Add Custom the string !T:\Greaves\Admin\Domains, to negate or exclude that folder.
The setting seems to take, I chose "Rescan Now" on each folder and even "Rescan All Now", just in case.
I saw no error messages.
...but I still find files reported twice.
Am I correct in supposing that:-
(1) I cannot use the exclamation-mark (!) to apply NOT to items in the Add Custom Folders arena?
(2) There could be some sort of error-message as a syntax check is done within a dialogue box if extraneous characters (in my case "!") are detected?
Thanks, Chris
Excluding Folders when adding duplicated folders
-
- Posts: 684
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Excluding Folders when adding duplicated folders
W: (aka T:) is FAT, not NTFS ?Drive T:, my data partition, already appears under the FAT section, as it should.
And you're using Folder rather then (indexing, or not, under) FAT (or NTFS) ?
-
- Posts: 684
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Excluding Folders when adding duplicated folders
Hi TheRube, and thank you for the questions!
(1) My data partition, drive T:, all of it, is indexed as a FAT drive.
(2) My SUBST drive W: is NOT indexed as a FAT drive (see (5))
(3) My boot partition C: is a NTFS drive
(4) Folders: I have excluded a folder tree T:\Greaves\Admin\Domains
(5) Folders: I have included a folder tree W:\
In writing this out it seems complicated, and that is often enough a Bad Sign.
I reasoned that I had to negate "T:\Greaves\Admin\Domains" in the Folders section, so I would add W:\ in that same section so that my logic was collected together: "I am indexing my W: drive, which means "T:\Greaves\Admin\Domains", and so I am excluding "T:\Greaves\Admin\Domains" from the T: Drive"
Yes, as shown at (2) in the attached image
Yes, as shown at (5) in the attached image.And you're using Folder rather then (indexing, or not, under) FAT (or NTFS) ?
(1) My data partition, drive T:, all of it, is indexed as a FAT drive.
(2) My SUBST drive W: is NOT indexed as a FAT drive (see (5))
(3) My boot partition C: is a NTFS drive
(4) Folders: I have excluded a folder tree T:\Greaves\Admin\Domains
(5) Folders: I have included a folder tree W:\
In writing this out it seems complicated, and that is often enough a Bad Sign.
I reasoned that I had to negate "T:\Greaves\Admin\Domains" in the Folders section, so I would add W:\ in that same section so that my logic was collected together: "I am indexing my W: drive, which means "T:\Greaves\Admin\Domains", and so I am excluding "T:\Greaves\Admin\Domains" from the T: Drive"
- Attachments
-
- 006.png (66.36 KiB) Viewed 2670 times
Re: Excluding Folders when adding duplicated folders
It looks like when a SUBST is used, the SUBST'd drive is seen as its' "source" (if included) & also as the "substitute" - regardless of whether it is "physically" (checkmarked to include) included or not.
So as T: is included, W: is also "included" - even you you tell Everything to NOT index W:.
So, add T:.../Domains/ as an exclusion.
3107 is in both T:\, & T:\DOMAINS (aka W:)
(named, 3107-TTT in T:, & 3107-WWW in W:)
W: is NOT included in the (NTFS [in my case]) Indexing (via NTFS Indexing)
W:, nonetheless IS shown, by virtue of it being a SUBST (& where T: is Indexed)
.
So as T: is included, W: is also "included" - even you you tell Everything to NOT index W:.
So, add T:.../Domains/ as an exclusion.
3107 is in both T:\, & T:\DOMAINS (aka W:)
(named, 3107-TTT in T:, & 3107-WWW in W:)
W: is NOT included in the (NTFS [in my case]) Indexing (via NTFS Indexing)
W:, nonetheless IS shown, by virtue of it being a SUBST (& where T: is Indexed)
Code: Select all
E:\Users\RUBEN7>SUBST
W:\: => T:\DOMAINS
E:\Users\RUBEN7>
-
- Posts: 684
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Excluding Folders when adding duplicated folders
Thanks, the Rube.
What this implementation of phpBB needs is a new smiley :SlapsHeadExceedinglyHardSevenTimes:
Only then do I make any progress at all.
I was trying to negate inclusion of a folder by applying the NOT operator (!) in my submission to the Include Folder box.
I should, as one of my gurus pointed out, be using the Exclude Folders box. This (above) is what I WAS doing. :doh:
I removed that negated T: path from the Folders box and placed it as an un-negated path in the Exclude Folders box Here is part of my result List, sorted by date-modified to group any files whose Identifiers are duplicated in the Result List.
The yellow-outline suggests that Index.doc is reported twice as being in
W:\LandfallGardenHouse\
T:\Greaves\Admin\Domains\"
I have more testing to do, but my aim is to be able to run the index.doc from the (Result List) W: drive to keep the WbWrd application happy.
Thanks again.
Chris
Re: Excluding Folders when adding duplicated folders
Oh, forgot to mention, while you may have been able to add the "!T:..." (as a Folder Index), its' presence is for not, because it isn't doing anything (as in, it is NOT NOT'ing your T: directory).
-
- Posts: 684
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Excluding Folders when adding duplicated folders
OK. I get that.
But a few days ago when I tried the ! example in [Include] Folders it was just ignored, instead of prompting a warning message.
This morning when I inadvertently pasted the ! string into Exclude Folders, I got a rap on the knuckles:- We/You can't have it both ways; If an entry doesn't make sense, then it ought to be reported. not ignored.
And if it can be reported in Exclude Folders, then it seems that the same checking can cause it to be reported in [Include] Folders
I will be appending this to my earlier post to Void, when I find it.
Meanwhile, back at the ranch ...
Cheers, Chris
-
- Posts: 684
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Excluding Folders when adding duplicated folders
I have resolved this with the user of FoldersChrisGreaves wrote: ↑Mon May 15, 2023 2:26 pm Because an application ("WbWrd") requires that the folder on which I operate belongs under the root of a drive, I have mapped (SUBST) drive W: to the folder T:\Greaves\Admin\Domains on my data partition T:
(1) My data partition is no longer indexed as a drive
(2) My data partition is assigned with Tools, Options, Indexes, {Include}Folders as T:\
(3) My Substituted drive W: is lodged under FAT with “Include in database”
(4) The path represented by w:, “T:\Greaves\Admin\Domains” is added to the Exclude{folders} list. And hooray! A specific file “Diary.doc” in my web pages shows up in the Result List as being on drive W:, and its entry is NOT duplicated as a member of drive T:
When I Run that Diary.DOC it is opened as being on Drive W:. Exactly what I need.
Thanks Void!
Chris