Directory Search  using FilenameFilter

I have a directory that has over 100,000 files in the following format:
Invoice-100010001-16072007.xls
Invoice-100010001-16072007.pdf
I want to be able to find all files with a certain name (ie Invoice-100010001).
Is it possible to use a FilenameFilter to implement this?

I was just concern about the timing/perfomance. In
the list method, is it a loop through all the files
in the directory? Wouldn't this be a problem if I
have over 10000 files?Probably since Java loads all the files/directories index items and then filters them.

Similar Messages

  • Directory search using APEX

    Hi,
    I have a requirement that there is a directory tree and the group of files are present in each directory under its parent. I have to make a search application that will find the files with its corresponding path where it is present(like desktop application search). Is it possible using APEX? or shall I choose some other application. Please suggest.
    Regards,
    Kaushik

    You can do it, but getting directory contents into your database in order to present it in APEX may not be the best use case.
    See http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584

  • Disable directory lookup using skype manager

    Is there a way to disable Skype directory search using Skype Manager?
    Thank you!

    According to the Administrator Guide, there is a way to restrict importing of contacts; you can research further here:
    https://support.skype.com/resources/sites/SKYPE/content/live/DOCUMENTS/0/DO5/en_US/skype-it-administ...
    I do not know of a way in Skype Manager to block a user affiliated with a Skype Manager profile from searching the Skype directory for other Skype users.
    Here's a link to the Skype Manager User Guide so it's handy:
    http://www.skype.com/go/business.guides.manager.user.guide
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • UCM Search using firstname and lastname

    Hi,
    One of our requirement is to enable the search using firstname and lastname. We store users, groups, roles, and accounts in Oracle Internet Directory and integrated with UCM. I would like to know the ways to show firstname and lastname fields in the search so that users can search with those properties instead of author metadata .
    Thanks,
    Raj

    If I got the question, first name and last name refer to first and last names of document authors, right? Otherwise, I miss the link between search for documents and people identities in an identity pool.
    Note that search dialogs support "wild-characters" - that is, you can enter "Jiri Mac*" instead of "Jiri Machotka" - alternatively, use "Contains" rather than "Equals To" criteria.
    Furthermore, I'm wondering how you intend to use first and last names in GUI - do you prefer to have two names that you somehow construct together? Do you want to display the names to users? (How many names will be in first names? How many in last names?)

  • Can't access my Directory Server using the Console installed on a machine

    can't access my Directory Server using the Console installed on a remote server, lookied into knowledge base article 4693, but still same any idea ?

    I too am having problems accessing Directory server from Netscape Console installed on Winxp.
    If I try to open Directory server it doesn't give any error. No windows nothing.
    If I try th same from the machine on which it is installed everything is fine. What is strange is that it did open a couple of times. But at the same time I can open the admin server, Netscape Messaging server from the xp box. Searching all over for a solution. Any help/pointers would be greatly appreciated.
    Config details:
    iDS4.13, iMS 5.0, running on Sol 8 box
    Netscape Console 4.2 on WinXP.
    Thanks

  • I installed PP6 on my Lenovo Laptap with Win8.1. Worked fine. Turned off computer. Turned back on. Can not open ANY PP6 program.  No Adobe app shows as a listed program to uninstall.  However, Adobe PP6 files shows in directory search.  How do I fix?

    How do you uninstall PP6 with win8.1 when it no longer shows up as a program listed with an uninstall options.  PP  worked until I turned off computer and restarted.  All start up links are gone.   I can see where Adobe PP6 files installed when I do a directory search but no .exe start files in those directories work.  I can not uninstall PP6 and try again to re-install.    How do I fix this problem?

    Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change. 
    I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
    for her (using Linux) and...
    got a new error code. Darn I was so sure I had found a clever solution this time lol.
    Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
    first so I could put them back if needed) to her new PC and the PC would not boot. 
    It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll. 
    ntdll.dll however seems necessary for Win7 to boot.
    So what I am wondering now is:
    Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
    the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
    dll's  path to the files it needs? 
    Willing to try any other options or settings you may have come up with as well.
    Thanks again for your reply and my apologies for not answering sooner.

  • IronPort Security Management Appliance - Directory Search Results Size

    I'm creating an access policy for a web security appliance that is applied to an authorized group within an idenity.  My question is in regards to the number of returned results when using the Directory search function to find and add the group.  Only the first 500 matching entries are shown and attempting to search for the group fails if it isn't part of that first 500.  How do I increase the amount of results returned when searching for groups?

    Hello Alex,
    By default, Active Directory does not respond to LDAP based queries which return more than 1000 results. If you have more than 1000 groups configured in Active Directory, it is necessary to increase the maximum page size (MaxPageSize) using the Ntdsutil.exe tool.
    http://support.microsoft.com/default.aspx?scid=kb;en-us;315071&sd=tech
    MaxPageSize - This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSize value. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.
    Default value: 1,000
    You can also simply input the group name and then click "Add" to manually add it as a workaround.
    Hope it helps.

  • PS Directory.Searcher for searching AD - inconsistent results?

    Hi guys,
    I'm having problems with a script and need some assistance please. I needed a script to search all the users in my AD and return some information around passwords. I found a few blogs about searching AD for user information, so using that help I cobbled
    together a script to return the information I need.
    Here's the script:-
    cls
    $Domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()
    $DomainRootPath = [ADSI]"LDAP://$Domain"
    $adsearch = New-Object DirectoryServices.DirectorySearcher([adsi]$DomainRootPath)
    #$adsearch.filter = "(objectclass=user)"
    $adsearch.Filter = "(&(objectCategory=person)(objectClass=user))"
    $adsearch.PropertiesToLoad.AddRange(@("name"))
    $adsearch.PropertiesToLoad.AddRange(@("lastlogontimestamp"))
    $adsearch.PropertiesToLoad.AddRange(@("givenName"))
    $adsearch.PropertiesToLoad.AddRange(@("SN"))
    $adsearch.PropertiesToLoad.AddRange(@("DisplayName"))
    $adsearch.PropertiesToLoad.AddRange(@("pwdLastSet"))
    $adsearch.PropertiesToLoad.AddRange(@("description"))
    $adsearch.PropertiesToLoad.AddRange(@("userAccountControl"))
    $adsearch.Container
    $adsearch.PageSize = 1000
    $adsearch.SearchScope = "Subtree"
    $users = $adsearch.findall()
    $users.Count
    $report = @()
    foreach ($objResult in $users)
    $objItem = $objResult.Properties
    $llt = $objItem.lastlogontimestamp
    $pls = $objItem.pwdlastset
    If (!$pls)
    $plsDate = "--Never Reset Pwd--"
    $PassLastSet = $plsDate
    Else
    # Interpret 64-bit integer as a date.
    $plsDate = $pls = [DateTime]$objItem.pwdlastset.item(0)
    $PassLastSet = $plsDate.AddYears(1600).ToLocalTime()
    If (!$llt)
    $lltDate = "--Never Logged In--"
    $lastLogon = $lltDate
    Else
    # Interpret 64-bit integer as a date.
    $lltDate = $llt = [DateTime]$objItem.lastlogontimestamp.item(0)
    $lastLogon = $lltDate.AddYears(1600).ToLocalTime()
    $temp = New-Object PSObject
    $temp | Add-Member NoteProperty name $($objitem.name)
    $temp | Add-Member NoteProperty lastlogontimestamp $lastLogon
    $temp | Add-Member NoteProperty pwdLastSet $PassLastSet
    #$temp | Add-Member NoteProperty displayname $($objitem.displayname)
    $temp | Add-Member NoteProperty useraccountcontrol $($objitem.useraccountcontrol)
    #$temp | Add-Member NoteProperty givenname $($objitem.givenname)
    #$temp | Add-Member NoteProperty sn $($objitem.sn)
    $temp | Add-Member NoteProperty comment $($objitem.description)
    $report += $temp
    $datetime = Get-Date -format yyyy.MM.dd-HH.mm.ss
    $csvpath = "C:\powershell logs\"
    $csvfile = "$csvpath\$datetime-userlist.csv"
    $report | export-csv -notypeinformation $csvfile
    My problem is some results are missing for some users. I only have around 200 users and many return a complete set of results. But many users don't return a result for lastlogontimestamp, pwdLastSet or userAccountControl - the three fields that aren't strings...
    I'm not sure if this is necessarily a powershell problem (perhaps my AD is corrupt or something weird like that?). When I query the $users array these fields are missing for the users - but when I use the ADSi edit GUI I can see there is data in these fields.
    It seems like the Directory.Searcher might have a bug or something?
    Apologies if there's a more appropriate place to post this please let me know - any help would be greatly appreciated!!
    Many thanks,
    Rob
    :D

    But I believe I provide an apples to apples comparison earlier, perhaps you missed it?
    Here's the gist from the post, but the entire post might be worth reading if you did miss it..
    Here's an example of a problem user account. To simplify things I'm using the results from your GetUserADProperties.ps1 script.
    Script results:
    Name = User A
    pwsLastSet = NULL (Blank, no result)
    lastlogontimestamp = NULL (Blank, no result)
    ADSI Edit GUI results:
    Attribute: Name       Value: User A         Syntax: Unicode String
    Attribute: lastlogontimestamp       Value: 04/01/2012 10:23:21 Coordinated Universal Time         Syntax: Large Integer/Interval
    If I double-click a box pops up with the Value: 129701462019825126
    Attribute: pwdLastSet       Value: 04/01/2012 11:30:44 Coordinated Universal Time         Syntax: Large Integer/Interval
    If I double-click a box pops up with the Value: 129701502443598094
    If this isn't an apples to apples comparison  how can I provide one?
    :D
    You should not be using ADSIEDit.  Use ADUC with the acctinfo.dll extension.
    The Large Integer value is the timestamp - it may be set to a value that indicate that it has not been set.
    ADSIEdit is not necessarily a live view of AD objects.  It is an editor for raw objects and it is very easy to break AD with it.
    If yu have been  using it regularly then perhps this explains why you have issues with AD.
    Is this a corporate AD implementation?
    Is this AD 2003/2008 or R2?
    Is this just a home test rig?
    If WS2003 then what level is it at?
    Somewhere in the above is the reason you are seeing issues.  Everything you ae providing just points to some bits of missing information. The scripts are working correctly.  The results from adsiedit may not be what they seem.
    jv

  • Problem in using FilenameFilter with FileDialog

    perhaps, i dont know how to use FilenameFilter with FileDialog because the following approach doesn' work
    FileDialog fd=new FileDialog(myframe,"Select an image");
    fd.setFilenameFilter(new filefilter());                                                                                                                           
                                                                                                             class filefilter implements FilenameFilter{
        public boolean accept(File dir, String name) {
            if(name.endsWith("jpg")||name.endsWith("gif")||name.endsWith("png")){
                          return true; 
                 return false;
    }if anyone have compatible idea then please let me know.
    thanks

    Did you print out the value of "dir" and "name" to make sure they contain what you expect?
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    Many thanks JEM24 for your help.  Ive just spent the best part of six hundred pounds on a new Sony Rx100m2 compact camera, so I have no interest in the Ipods camera at all really. I doubt Ill be watching many videos on it as Im very lucky in that I have a good Android tablet. Its more as a stock music player that Ill be buying the Ipod for, if indeed I do end up buying one. I dont like the idea of paying the exorbitant amount added for more memory space that Apple along with most other companies charge. In fact I read an article on this very subject just yesterday in the tech section of Flipboard. It stated in the article that in the case of the Iphone  the actual cost of each additional  gigabyte of storage  to Apple et al is something in the order of 60p.. This is certainly not reflected in the price us the customer has to pay at the till.. Its for this reason primarily that Apple in particular, because their products do not allow adding expandable memory of your own in the form of cheap to buy cards, that nobody in their right mind buys the 64gig etc Iphones..I am aware that we are discussing my potential purchase of an Ipod Touch here but you see my point. Many thanks again though for helping me.

  • Enterprise Search using Sharepoint Server 2007 + SAP R/3

    Hi experts,
    I want to achieve an enterprise search using SharePoint Server 2007 (MOSS).
    SharePoint includes the BDC (business data catalog) which allows you to communicate with the SAP System.
    I read in the Microsoft whitepapers that thereu2019s a need for a web application server 6.40.
    So here is the problem:
    We have SAP R/3 Enterprise 4.7 with WAS 6.20. We donu2019t want to change or upgrade the SAP system.
    There are ways to connect the WAS to the R/3 system e.g. RFC.
    But does this still work for search in SharePoint?
    Did anybody already deal with this problem?
    Any other ideas connecting SharePoint to SAP in this scenario?
    Best regards
    Philipp Detemple

    > and having requirement to upgrade OS version from B.11 to B.23. Currently server is hosting SAP R/3 Enterprise version.
    So you upgrade HP-UX 11.11 to HP-UX 11.23?
    > I have tried to serach SAP service market place for PAM, but could not find specific information on version upgrade from B.11 to B.23
    Yes - because there is no HP-UX 23.x, only 11.23 and 11.31. For the version overview check
    Note 939891 - HP-UX: End of Support Dates
    Note 1075118 - SAP on HP-UX: FAQ
    > My Questioin is: If we copy system as it is to new host and if we keep the same Kernel Patch 196, will it work fine or give issue?
    It will work.
    > So even if I got for latest patch 304 which is released on 16.11.2009, still the OS version for which it built is B.11, so if we have B.23, will it work? I would not see the possibilities of kernel upgrade at this stage.
    Why no possibility for a kernel upgrade if you install a new server?
    > so with same kernel will it work? What else I need to check for the migration and make sure that everything works fine on new server.
    Check
    Note 831006 - Oracle 9i installation on HP-UX 11.23 and 11.31
    Markus

  • Integration Directory - Transport using CMS does not appear

    Hi guys,
    I'm having problems with one thing I thought it would be trivial.... I'm not able to get the option 'Transport using CMS' in the Integration Directory available.
    I've done the necessary steps on the exchangeProfile in order to transport objects using CMS.
    1. Configuring ExchangeProfile
    IntegrationDirectory
    com.sap.aii.ibdir.core.cms.enableTransportWizard=true
    com.sap.aii.ibdir.core.cms.enableClTransport=true
    IntegrationRepository
    com.sap.aii.ibrep.core.cms.enableClTransport=true
    com.sap.aii.ibrep.core.cms.enableTransportWizard=true
    Added the values to com.sap.aii.ib.client.properties
    u2022 com.sap.aii.ibrep.core.cms., com.sap.aii.ibdir.core.cms.
    2. And after, I've created the tracks needed for IntegrationRepository and IntegrationDirectory.
    For the IntegrationDirectory I've followed SAP's description:
    "You have created an XI track in the Landscape Configurator and entered the addresses of the development, consolidation, and productive directory. There are no software component versions in the Integration Directory. Therefore, for directory transports using the CMS, you specify the software component version SAP-INTDIR 3.0 (EXCHANGE DIRECTORY 3.0). This refers to all configuration objects of the Integration Directory.
    Once you have made this setting, you can create transport lists for the CMS. The status of the change lists no longer changes to Closed immediately after their release, but first changes to Transportable."
    3. I've restarted the J2EE Server.
    When I export the objects from IntegrationRepository everything runs OK, but on the IntegrationDirectory I'm not able to have the option 'Transport Using CMS' available.
    I've read several threads on the SDN but none of them solved the problem...
    Can anyone give me any hint ?

    Hi Sameer,
    No luck.... There's nothing similiar to what I'm describing and the points which are mentioned i've already covered them.
    Thanks for the tip, I was hoping it could give me a push...
    Any ideas...?

  • Reading (and searching, use of TOC and index) Acrobat files offline

    OK - I have tried several things in effort to read PDFs offline.
    The 'tools' that allow me to access these files PDFReader Pro and GoDocs are incapable of doing searches, use TOC, and index.. It is basically a picture of a PDF. They also present it in the linear form where I need to actually scroll the 343 PAGES to get to the information I want to read mid-way into the document.
    Is there a realistic tool that actually properly presents PDF files offline and allows it to be used as it was intended? OOPS - correction Safari cant display this right either.... never mind ....
    Thanks
    Message was edited by: EmbeddedGeek
    I removed an erroneous statement that safari can properly display PDFs - it can't provide search, index/toc accesses. Bogus!

    On a possibly related note, see http://reviews.cnet.com/8301-13727_7-20004258-263.html?tag=mncol;txt for a way to ADD stuff to the TOC. I'm just passing this along, I haven't tried it.
    Doug

  • How do you perform partial word search using PDF Open Parameters?

    Hello,
    We are using the 'search=' open parameter in the URL string, which open a PDF and automatically searches for a word within the PDF.  It works great for whole word searches. Unfortunately, it does not work for partial word, or phrases. In other words, if I'm searching on '123456' and there is a word in the document that is '1234567', it will not find the partial word, or first 6 characters of the 7 character word. You can perform a partial or phrased search using the advance search feature of Adobe Reader.  So, currently after the PDF opens, and shows no hits on the automatic search for '123456', we are able to manually search again for a partial word search, and then see matches in the document.  Is there any way to specify to use a whole or partial word search when using the 'search=' open parameter, so that we can automatically match on partial and whole words?  Something like 'search=123456*'?

    It never worked that way. Command-F shows the page search bar.

  • Service Ticket: Search using Inbox & My Worklist in IC WebClient

    Dear Gurus,
    When I create a Service Ticket in the IC WebClient in CRM 5.0 and save it, the system generates a Transaction Number which I can then search for by using Interaction History, Inbox and My Worklist.
    When I search using Interaction History, I select the relevant Service Ticket and the system takes me to an Interaction Record, and from there I can navigate to the correct Service Ticket.
    When I search using Inbox, the system takes me to a Service Order, which I do not believe is correct.
    When I search using My Worklist, the system also takes me to a Service Order, which I do not believe is correct.
    Any recommendations?
    Rgs,
    Alan

    Hi
    You can search service ticket from inbox ideally by entering the object ID in the agent inbox or you can also search for service tickets in interaction record which is an activity transaction type if you maintain the copy control for service ticket from interaction record then you can search for service ticket through the interaction record as well.
    refer to best practice link for the service ticket custimiseing settings for icwebelient
    http://help.sap.com/bp_crmv250/CRM_DE/index.htm
    Reward points if helpful
    Regards
    Dinaker vikas

Maybe you are looking for

  • Open items report

    Hi I required to get a report which shows the number of open items. The report should contain the GL account and the number (count) of open line items. This should also have the facility to execute several GL accounts at once as well. I checked with

  • Multiple domains share the same datasource?

    Hi, I'm new to weblogic server. I understand that there's a wizard available for us to follow and have the domain created. However, does it means that only one domain can be tagged to the datasource (meaning the database used). Can I recreate or clon

  • How to delete all Action Sets in the Actions Palette

    I'm in need of a piece of JavaScript code that will delete all the Action Sets in the Actions Palette. I've scripted the logic to load the appropriate Action Set once needed but I don't want to end up with duplicates at the end of processing the batc

  • How to get notification of ios update

    Hi everyone I'm an Apple newbie, having bought an iPad Mini a few weeks ago, and I'm still trying to understand some of iOS's quirks. Latest puzzle concerns updates to iOS, grateful if someone can advise how this is supposed to happen. So I saw an ar

  • 'Print one copy' is OK, print from dialogue fails

    Using MacBook pro with 10.8.2 and CS6 13.0.1, with Kodak 2170 printer. I can select "Print one copy" from the file menu, and the file is sent to the printer and prints fine. But if I select "Print", it brings up the usual Print dialogue window, and s