Search for files which file name contains a specific string

Hello

I'm lookng for a way to find all the files in a directory, what part of the file name contains a specific string.

for example:

String = Hello

files;

-1hello2.txt

-22he45.txt

-gehello42353.txt...

The result should be an index or the full file name that matches. In the example, I found the indexes 0, 2, or 1hello2.txt and gehello42353.txt.

In fact, I have a list of files with the "recursive list.vi".

Any suggestions are welcome.

Thank you for your help

Yves

You can use the list of folder - function with * Hello *-model.

From there on, you get the names of files that include this specific model.

If already you have the list of files:

-use the chain of digitization of the chips in a loop for and if token index! = - 1, then you can add this index in array to the list.

I m sure there are better ways to do it, but nothing that I can get to quickly.

Tags: NI Software

Similar Questions

  • search for file names with tilde character

    trying to locate all the file name containing the tilde (~) character. It is obviously special for the search as a search looking for files with this character corresponds to each file. I can't find the mechanism to quote the tilde so that Windows will search for files containing the tildes in name literally.

    You expect to be easy to find the answer, but then I found others asking the question. I can't find the answer.

    See the following article on research in Vista: http://www.vistax64.com/tutorials/75447-search-options.html.  I ' ts faily basic and probably does not cover what you need to know to make the research you are tyring to do.

    Here is an article on research options in Vista: http://www.vistax64.com/tutorials/75451-advanced-search.html.

    Here is an article on the use of advanced query options to improve searches in Vista (I think yuu might find your answer in this one): http://www.vistax64.com/tutorials/158288-advanced-searches.html.

    Here is an article with a number of advanced search options and how format the queries that may be helpful: http://windowsteamblog.com/windows/archive/b/windowsvista/archive/2007/05/09/advanced-search-techniques.aspx.

    I hope this helps.  If not go back and I'll try to find more resources or attempting to do myself to see if I can understand how do.  It seems that Mr. Wizard answered the question before I coulld end my post. The anwer to the 'why' is probably contained in the above items.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Windows XP Explorer can perform a file search based on several search criteria? Try to search for files that contain certain words in the content of the file. The basic functionality seems to include the ability Word or a single sentence.

    Search for files using several search criteria.

    Native XP research capacity is quite limited. Try the free Agent Ransack instead. MS - MVP - Elephant Boy computers - don't panic!

  • The search for file names with a tilde ("" ~ ")

    In Windows Explorer, how can I search for filenames containing a tilde? I tried the name: ~, but this seems to find all the files. I tried going to ADVANCED search and specifying, ~ * ~ *, ' ~ ', etc. and he always seems to find all files. "It's a drag, since all these tilde files are probably temporary which can be deleted.

    Sachelis Hello,

    Please see this recent thread:

    http://social.answers.Microsoft.com/forums/en-us/vistafiles/thread/f8266844-292d-4609-915F-43a99c58830e/#299602a9-5954-49cd-8873-363bc3679381

    Mr. Doug in New Jersey

  • Windows 7 can search for files containing a specific string that includes punctuation

    I have a documentation for a programming language which is in the form of html on my machine and search for files that contain the string "${1}".

    However if I type that in the search box windows instead seeks any file containing the string '1' in its content or its file name or a folder (which gives me 10240 results!)

    Research I try it is possible with a different syntax (escape the $ and brackets to indicate that they are part of the search maybe string)?

    Thank you

    MOG

    Hi Mog,

    Because the question you posted is related to search for files containing a specific string, it would be better suited in the MSDN forum. Please post your question in the following MSDN forum:

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threads

  • Search for files by name, date range, size, content, etc.

    I just changed from windows XP pro to win 7 pro 64.  For twenty years, I used the "Norton File Manager" who does not work under Windows 7 Pro 64 bit.  I became dependent on its ability to search relatively sophisticated as by date range, size, content, name, etc.  I guess that Windows 7 has something like this, but I'm not.  Can you help me?

    On Tuesday, March 19, 2013 15:09:13 + 0000, csvideo wrote:

    I just changed from windows XP pro to win 7 pro 64.  For twenty years, I used the "Norton File Manager" who does not work under Windows 7 Pro 64 bit.  I became dependent on its ability to search relatively sophisticated as by date range, size, content, name, etc.  I guess that Windows 7 has something like this, but I'm not.  Can you help me?

    I recommend two different third-party search programs, both free:

    1. search everything, which is faster if you search by file name
    (http://www.voidtools.com/)

    2. agent Ransack, which is the best for finding content, etc.
    http://www.Mythicsoft.com/page.aspx?type=agentransack&page=home

  • How can I search for a file that contains a specific part?

    Hello
    In Windows 7, how to search for files whose names have a specific part as "PART2"?

    Many thanks & best regards,
    Human

    Windows 7 search syntax to use would be:

    name: ~ = part2

  • Is there a limit for research on the function of advanced search for files containing text matching. My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hello

    Is there a limit for research on the function of advanced search for files containing a text match? My search always ends with 500 discoveries but the folder contains several PDF files that match the criteria.

    Hi carls76936091,

    Open Acrobat, go to the Edit-> Preferences-> search & check if there is a limit to 500 set, in case if it is to increase it please.

    Kind regards
    Nicos

  • How we can search for files in the Webcenter 11.1.1.6 content?

    Hello

    I have a requirement for a client where they want to use the advanced search of the AAU to search for files (not articles).

    Version: Webcenter content 11.1.1.6

    Contribution using folder_g files

    I founded a model pre-built for searching for files. The name is COLLECTION_GET_SEARCH_FORM


    Here is an example of this model and it works

    http://euedocs.emersonprocess.co.UK/idcplg?IdcService=COLLECTION_GET_SEARCH_FORM

    When I try this service on my own content instance Webcenter, the model is loaded. But when I click on search, nothing happens.

    The drop-down lists containing ' Contains/pairing /...» "they are also not responsible.

    I did some research on the Support of Oracle and I created this article:

    Limits for fast searching of the Collaboration of records(1071778.1)

    https://support.Oracle.com/epmos/faces/UI/km/SearchDocDisplay.JSPX?returnToSrId= & srnum = & _afrLoop = 418199051953706 & type = c...

    I'm still stuck on this issue. What configurations are absent?

    Is someone can help me?

    Thank you very much.

    I contacted support. Here's the answer:

    Hello

    The feature you're looking for is something that is not currently present out-of-box.

    He used to work in the classic configuration only, the way back.

    And 11 g, classic layout no longer exists.

    This is a request for development with our development team.

    Bug 6488476 - INCLUDE "SEARCH FOLDER of HIERARCHY" AS SEARCH OPTION

    Thank you

    Fatima zahra

    Thank you SrinathMenon for your reply also.

  • Search for files in a folder of some

    Hello

    I want to create a smart collection (or search) with files, which are located in the folder with a given name. I have hundreds of files called 'Selected' and only photos within these folders should be found. But the only search option, I can find is "Filename" - How do I search for files with a certain string in their directory string?

    Thank you

    Konrad

    This script should select the documents in the selected files. Make sure that the top-level folder is selected before running the script.

    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    selectedFind = MenuElement.create("command", "Find in Selected Folders", "at the end of Thumbnail");
    }
    selectedFind.onSelect = function () {
       findInSelectedFolders();
       }
    function findInSelectedFolders(){
    var win = new Window('dialog',"Find in Selected Folder");
    win.orientation = "column";
    win.pnl1 = win.add('panel', undefined, undefined, {borderStyle:"black"});
    win.g1 = win.pnl1.add('group');
    win.title = win.g1.add('statictext',undefined,'Custom Find');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 = win.pnl1.add('group');
    win.g5.orientation = "row";
    win.g5.alignment="left";
    win.g5.st1 = win.g5.add('statictext',undefined,'Folder Name');
    win.g5.et1 = win.g5.add('edittext',undefined,'Selected');
    win.g5.et1.preferredSize=[150,20];
    win.g10 = win.pnl1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment="left";
    win.g10.st1 = win.g10.add('statictext',undefined,'Find ...');
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[200,20];
    win.g100 = win.add('group');
    win.g100.orientation = "row";
    win.g100.alignment="center";
    win.find = win.g100.add('button',undefined,'Find');
    win.find.preferredSize=[100,30];
    win.cancel= win.g100.add('button',undefined,'Cancel');
    win.cancel.preferredSize=[100,30];
    win.find.onClick=function(){
      if(win.g10.et1.text == ''){
          alert("You haven't entered anything to find!");
          return;
          }
      win.close(1);
    var folderList = [];
    var fileList = [];
    var CollectionFiles = [];
    var Path =Folder(app.document.presentationPath);
    var REX = new RegExp(win.g10.et1.text,"gi");
    folderList = FindAllFiles(Path,folderList,new RegExp(win.g5.et1.text.toString(), "i"));
    for(var a in folderList){
        fileList = folderList[a].getFiles();
        for (var f in fileList){
            if(fileList[f] instanceof File){
                 if(fileList[f].name.match(REX)) CollectionFiles.push(fileList[f]);
                }
            }
    
    }
     if(!CollectionFiles.length){
         alert("No match found");
         return;
         }
     var Name = "Found in " + win.g5.et1.text.toString();
     var foundFiles = app.createCollection(Name);
     for(var c in CollectionFiles){
         app.addCollectionMember(foundFiles,new Thumbnail(CollectionFiles[c]));
         }
     app.document.thumbnail = foundFiles;
    }
    win.center();
    win.show();
    }
    function FindAllFiles( srcFolderStr, destArray, regEX ) {
     var fileFolderArray = Folder( srcFolderStr ).getFiles();
     for ( var i = 0; i < fileFolderArray.length; i++ ) {
      var fileFoldObj = fileFolderArray[i];
      if ( fileFoldObj instanceof File ) {
      } else {
                try{
               if(fileFoldObj.name.match(regEX)) destArray.push( Folder(fileFoldObj) );
               }catch(e){$.writeln(fileFoldObj);}
       FindAllFiles( fileFoldObj.toString(), destArray, regEX );
      }
     }
     return destArray;
    }
    
  • GetFirstFile and GetNextFile while searching for files

    In LabWindows 7.0 "C" I use a wild-card building to search for files in a folder called "PAT_DISKS" below as shown:

    strcpy (work, "c:\\DEVELOPMENT\\PAT_DISKS\\? MS? _DSK_PAT");
    is = GetFirstFile (work, 0, 0, 0, 0, 0, 1, name);
    is = GetNextFile (name);

    There are at least three folders corresponding to the criteria of 'PAT_DISKS', but "GetNextFile" are not.

    Is this a bug in LabWindows CVI 7.0?

    Thank you, your answer helped me to find the problem.   As usual, it's between the keyboard and the Chair.  Without realizing it, I was pointing to another folder that I created earlier for debugging purposes.  There was actually only a subfolder so "GetNextFile" function work properly.

    Rob

  • Search for files and folders

    Help instructions searching for files and folders said to click on START and then click on SEARCH - the problem is that I can't find NO SEARCH when I after I click START

    go to the search-search-files and folders-file name - click search - and the named file should appear.

    or will display the files and folders-leave white - click search all records.

  • Search for files and folders in XP

    Simple search for files and folders in XP do not work. I can't find a string in a file. It works perfectly in 2000 and NT. I have admin rights and I am an owner of these files.  Why XP can't look inside files?

    Cannot find the files containing the text...

    http://www.dougknox.com/XP/scripts_desc/xp_fix_search.htm

    Using the "a word or Phrase in the file" search criterion may not work
     http://support.Microsoft.com/default.aspx?scid=KB; EN-US; Q309173

    Search for content search not all Types of files for the specified string
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; Q309447

    Another response of the community of Windows XP newsgroups

  • When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    Thank you!

    What you can do is to do a search, right-click on any column heading (for example name, folder, etc.), and then click "Folder path" from the list that appears.  You can also click to turn off the folder.  The next time you're looking for in this area, this column of path of the folder should appear.  You can drag the columns in a different order also.

  • Search for files by using the Start button

    I've lost the ability to search for files by using the Start button.  I can enter a file name, but always get a response "nothing found".  I know I did something back a couple of weeks, but don't know what I did to turn it off. Help!

    Thank you!

    Take a look at my search installation tips.  If you are in these settings, you can make sure search is enabled and if necessary you can use the 'reconstruction' of the for button to rebuild your search system.

    http://Skeene.NET/tech/boost-Windows-search-in-two-steps/

    Also, there is an automated troubleshooting tool that tries to find and fix any problems with your search system.  You can go for it here:

    http://support.Microsoft.com/mats/windows_search/

Maybe you are looking for

  • LabVIEW in excel file

    Hello... I am using labview 8.5 for my last project year... can I convert the graph in the labview in excel file using this version of labview? Please... help me... ahaksss

  • Can I use schedule task to introduce the fast user switching?

    I want to keep my current session and force the login screen to appear.  Can I use schedule task to initiate a quick user change the login screen to display?

  • What makes USB boot measure 4 windows 8 iso image

    I downloaded windows 8 iso image and Rufus make USB bootable. Still, my hp 2000 does not recognize USB. Here are the steps I performed.1 windows iso image downloaded 8.2 downloaded Rufus3. plugged in USB ran rufus, rufus in USB format4. iso image loa

  • problems with installation/update of iTunes.

    I had stince iTunes, I bought my computer. It worked fine until I went to update to the new iTunes software. During the update my computer froze, I'm crazy and close. After re-booting my computer, I tried clicking on iTunes once more. A message comes

  • VSM UCS Fagot, CPS-UCS-2RU-K9

    When we buy VSM7.5 on UCS Bundle CPS-UCS-2RU-K9, do we buy VMware Hyperviosr / VMware licenses separately? OR is the bundle includes VMware hypervisor as well?