Page 1 of 1
Search Function for VUE Files
Posted: Thu Nov 01, 2012 12:55 pm
by Darkhorse
Hi all
Is there a standard TI that allows me to search every VUE file in my server for a specific subset and give me the name?
I created a mass TI system that always opens and creates the same name for the Dimension subset and destroy straight after, however due to creating a new TI someones snuck in and used my subset as a view and i need to delete there view so i can carry on using my other TI's
thanks
Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 1:07 pm
by tomok
Not that I'm aware of but VUE files are plain text. Just use the Windows Search function on the data folder for the name of the subset and it will return all the VUE files that contain that subset in them.
Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 1:37 pm
by garry cook
I wrote a tool that did that years ago but since Microsoft in their infinite wisdow removed Application.FileSearch from Excel 07 onwards it fails to play ball and I've never got round to replacing the functionality

Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 1:51 pm
by Darkhorse
Hi tomak that would be a great idea if it didnt return over 50-60 vues at a time not to mention the views are all in difrent user folder
FYI i wasted about an hour doing that proposel before writing this post... i barely dented it
Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 2:09 pm
by Steve Rowe
Hi,
There is also a bug that has been in and out of TI for years where even if you have destroyed the view it won't let you delete the subset.
This often happens durng periods of dev and cleared by a restart. Not sure if this is what you are suffering from?
Cheers
Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 3:17 pm
by Marcus Scherer
Yes, Steve pointed to a good direction. Using hard-coded view and subset names instead of variable ones is more stable in this case.
If this is not the case, you can read out subset names from the *.vue file. The rows with subset names start always with a 6, (e.g. 6, Default). I wrote a process that determines these subsets and puts it in another view (see attachment). But you could also read out the name instead. Of course you would also need to loop through alle relevant folders that contain *.vue files before.
Re: Search Function for VUE Files
Posted: Thu Nov 01, 2012 9:56 pm
by jstrygner
Hi,
A while ago I had exactly this need - to find all .vue files in data model that contain particular string (subset name).
All I did, I created a SearchString.bat file with such a code in:
Code: Select all
@echo off
findstr /i /m /s "SubsetName" *.vue > SearchString.txt
After you paste this SearchString.bat file in the data model and execute this it will search through all .vue files (in this case also in subfolders) for the "SubsetName" stirng. Each file that has this string in its content will be listed in SearchString.txt file. If there will be no matches the SearchString.txt file will not get created (or updated if such one already existed from previous searches).
This is also handy if you want to search through .pro or other files, just adjust the SearchString.bat content.
Here you can find some more options and examples of how to use findstr function.
Re: Search Function for VUE Files
Posted: Sun May 19, 2013 9:29 pm
by Wim Gielis
jstrygner wrote:Hi,
A while ago I had exactly this need - to find all .vue files in data model that contain particular string (subset name).
All I did, I created a SearchString.bat file with such a code in:
Code: Select all
@echo off
findstr /i /m /s "SubsetName" *.vue > SearchString.txt
After you paste this SearchString.bat file in the data model and execute this it will search through all .vue files (in this case also in subfolders) for the "SubsetName" stirng. Each file that has this string in its content will be listed in SearchString.txt file. If there will be no matches the SearchString.txt file will not get created (or updated if such one already existed from previous searches).
This is also handy if you want to search through .pro or other files, just adjust the SearchString.bat content.
Here you can find some more options and examples of how to use findstr function.
Interesting approach !
One could use a tool like Notepad++ and have a GUI

Re: Search Function for VUE Files
Posted: Mon May 20, 2013 3:44 am
by macsir
I found a perl script just a couple of days ago. Hope it is helpful. Check this one.
http://www.bihints.com/indexing_subsets
Re: Search Function for VUE Files
Posted: Fri Apr 25, 2014 6:43 am
by cfm04
jstrygner wrote:Hi,
A while ago I had exactly this need - to find all .vue files in data model that contain particular string (subset name).
All I did, I created a SearchString.bat file with such a code in:
Code: Select all
@echo off
findstr /i /m /s "SubsetName" *.vue > SearchString.txt
After you paste this SearchString.bat file in the data model and execute this it will search through all .vue files (in this case also in subfolders) for the "SubsetName" stirng. Each file that has this string in its content will be listed in SearchString.txt file. If there will be no matches the SearchString.txt file will not get created (or updated if such one already existed from previous searches).
This is also handy if you want to search through .pro or other files, just adjust the SearchString.bat content.
Here you can find some more options and examples of how to use findstr function.
This was very usefull.
Thank you.
Re: Search Function for VUE Files
Posted: Thu Sep 22, 2016 3:43 pm
by Wim Gielis
jstrygner wrote:Hi,
A while ago I had exactly this need - to find all .vue files in data model that contain particular string (subset name).
All I did, I created a SearchString.bat file with such a code in:
Code: Select all
@echo off
findstr /i /m /s "SubsetName" *.vue > SearchString.txt
After you paste this SearchString.bat file in the data model and execute this it will search through all .vue files (in this case also in subfolders) for the "SubsetName" stirng. Each file that has this string in its content will be listed in SearchString.txt file. If there will be no matches the SearchString.txt file will not get created (or updated if such one already existed from previous searches).
This is also handy if you want to search through .pro or other files, just adjust the SearchString.bat content.
Here you can find some more options and examples of how to use findstr function.
This technique will output the filenames in a text file, relative to the current directory.
If you also require the full file name including the path, consider:
Code: Select all
@echo off
findstr /i /m /s "SubsetName" "%CD%\*.vue" > SearchString.txt