none
Search files and folders in WCE7 RRS feed

  • Question

  • I want to know how to search files and folders in WEC7. I have tried to searched that in web but couldn't find the solution.

    Thanks in advance

    Thursday, January 16, 2014 4:28 PM

Answers

  • You can use FindFirstFile and the associated functions as documented here: http://msdn.microsoft.com/en-us/library/ee489744%28v=winembedded.70%29.aspx.  You can use it to enumerate the folders and files on the device.

    You use FindFirstFile to get starting point and FindNextFile to move on to the next file that matches the search pattern until you run out of files / folders to search through.

    The search pattern can be generic so that it returns everything or you can search based on patterns.

    • Marked as answer by Rajith4321 Friday, January 31, 2014 2:26 PM
    Thursday, January 16, 2014 4:33 PM

All replies

  • You can use FindFirstFile and the associated functions as documented here: http://msdn.microsoft.com/en-us/library/ee489744%28v=winembedded.70%29.aspx.  You can use it to enumerate the folders and files on the device.

    You use FindFirstFile to get starting point and FindNextFile to move on to the next file that matches the search pattern until you run out of files / folders to search through.

    The search pattern can be generic so that it returns everything or you can search based on patterns.

    • Marked as answer by Rajith4321 Friday, January 31, 2014 2:26 PM
    Thursday, January 16, 2014 4:33 PM
  • I know this function, this is used to search files through code.

    But, I need to know how to do the search  files in a device which runs on WEC7, just as we search in windows xp using search companion.

    I want to know is there any 'search' application which can run on that WEC7 device. Or is there any keyboard shortcut which can invoke such applications or tool.

    Thursday, January 16, 2014 4:50 PM
  •  There isn't much need for that, so no a search tool like that doesn't exist.

    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    Friday, January 17, 2014 5:37 AM
    Moderator
  • Is there any way to search  files in a device which runs on WEC7
    Friday, January 17, 2014 2:19 PM
  • your link shows 

    Server Error in '/' Application

    is there any other links available?

    Friday, January 17, 2014 2:22 PM
  • I am assuming that you are referring to the link that I posted?

    It still works for me, you can manually navigate there in MSDN via :Mobile and Embedded Development->Windows Embedded->Windows Embedded Compact->Windows Embedded Compact 7 ->Reference->Storage->File I/O Reference->FindFirstFile or you can just search MSDN for FindFirstFile.

    Friday, January 17, 2014 5:41 PM
  • I don't know how to use FindFirstFile. Is there any example program available for console application to search files in WinCE

    Saturday, January 18, 2014 4:13 AM
  • Didn't I say that no search tool like that exists?

    [Added] I am sorry, I misunderstood.   Since you had already been told how to write code to do  that, I thought that you had ignored my response.  I see that you did not.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com


    Monday, January 20, 2014 2:23 PM
    Moderator
  • An example can be found at:

    http://geekswithblogs.net/BruceEitman/archive/2008/06/13/windows-ce-monitoring-for-disk-insertion-to-add-support-for.aspx


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    Monday, January 20, 2014 2:27 PM
    Moderator