Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Include folders which start with a 'bullet' char and a '['

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Sat Dec 12, 2015 7:27 pm    Post subject: Include folders which start with a 'bullet' char and a '[' Reply with quote

Include folders which start with a 'bullet' char followed by a '[' then some specific text

ViceVersa 2.5 Pro Build 2514 x64

An odd one this, I have a series (approx. 150) of 'root' folders on a Server 2008 NTFS Volume. Where the contents of the folder have been 'retired' (ie emptied) to a another server/Cloud, the 'root' folder has been renamed to start with a 'bullet' char, spc, square bracket then an English explanation of where the data was moved to.

What I need to do is EXCLUDE all folders other than those that start with the string '· [ Folder Retired to Legacy.....' in the 'root' only.

Here's a sample of the folders :

---

SD_CC_Planning
SD_CC_Public
SD_CC_SMT
SD_Finance
SD_HR
SD_JPS
SD_P&BI
SD_Placement
· [ Data Moved to Box @ 2015-02-12 ] - SD_C1
· [ Data Moved to Box @ 2015-03-06 ] - SD_DL
· [ Data Moved to Box @ 2015-11-16 ] - SD_House
· [ Folder Retired to Legacy @ 2015-12-07 ] - Business
· [ Folder Retired to Legacy @ 2015-12-07 ] - Catering
· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes


---

So the folders I need to copy are ONLY these :

· [ Folder Retired to Legacy @ 2015-12-07 ] - Business
· [ Folder Retired to Legacy @ 2015-12-07 ] - Catering
· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes

but what should the filter be ? A square bracket is a 'reserved' char in ViceVersa filters ?

-----

Any help would be appreciated. Many thanks



Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Mon Dec 14, 2015 1:10 pm    Post subject: Reply with quote

Hi, please try escaping the square brackets with \ e.g. \[
thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Mon Dec 14, 2015 1:41 pm    Post subject: Reply with quote

I don't know what you mean Sad

Sorry for not understanding you !



Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Tue Dec 15, 2015 8:01 am    Post subject: Reply with quote

Sorry , my mistake! use:

\· [[*

So instead of [ , use [[ to indicate you mean [ chars and not [ wildcard.

thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Tue Dec 15, 2015 9:16 am    Post subject: Reply with quote

An 'include' Subfolder Filter of :



· [[ Folder Retired to Legacy*



worked perfectly.


Thank you.



A.
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Wed Dec 16, 2015 1:04 pm    Post subject: Reply with quote

Hi

One small and probably obvious adjustment, is there any way to stop VV from 'trawling' (comparing) all the sub-folders (30,000+ in this instance) for the two or three 'root' folders that match the 'Include' Subfolder Filter of :

\· [[ Folder Retired to Legacy @ 2015-12-14*


Thanks (again) !



Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Thu Dec 17, 2015 10:01 am    Post subject: Reply with quote

Try adding an exclude folder after the above include filter:

exclude
\· [[ Folder Retired to Legacy @ 2015-12-14*\*
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Thu Dec 17, 2015 8:34 pm    Post subject: Reply with quote

So I now have Subfolder Filters of :

\· [[ Folder Retired to Legacy @ 2015-12-14* (include)
\· [[ Folder Retired to Legacy @ 2015-12-14*\* (exclude)

but the 'exclude' Filter appears to have no effect, ie VV reads and lists all folders and files that match the 'include' that applies to the 'root parent' folder, so takes quite a while to run.

Any more thoughts would be appreciated Smile Maybe this is just not possible ?


Tks



Alice
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8758

PostPosted: Thu Dec 17, 2015 11:02 pm    Post subject: Reply with quote

Hi Alice,

As a test, I have created a folder :

"C:\Temp\"

In there I have created:
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes\test1
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes\test2

Then I use c:\temp\ as source and x:\target\ as target with "Include Subfolders: Yes"

I have added the following subfolder filters:
- Include subfolders: "\· [[*"
- Exclude subfolders: "\· [[*\*"

This works fine, e.g. all files in
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes
are included, while subfolders and files in
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes\test1
C:\Temp\· [ Folder Retired to Legacy @ 2015-12-07 ] - Homes\test2
are excluded

Is this similar to your setup?

thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Alice



Joined: 29 Jan 2015
Posts: 277

PostPosted: Fri Dec 18, 2015 2:01 pm    Post subject: Reply with quote

Apologies, we were speaking at cross-purposes.

What you have demonstrated immediately above, does indeed work.


Thank you



Alice
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: