dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Scanning sub directories

  1. #1
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    Scanning sub directories

    I am writing an application , to scan directories and any sub directories , till there are no more sub directories to scan , and them find files with specific attributes move them into another directory.

    so the program flow is something like this,

    1. take a root directory .
    2. go through all sub directories including root directory in it till no more directories to left .
    3. find files with certain attributes and them move them to another location.

    I can do the top level directory , however finding difficult to , keep including sub directories and other directory with them as there level my vary form system ,

    I know it is doable as I have see other programs do this ,

    any help in this regards will be much appreciated.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,593

    Re: Scanning sub directories

    Have a look at this FAQ
    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    Re: Scanning sub directories

    Thanks Victor , A while ago you send me a link to C++ base class to implement NT service , I seem to have lost it , could you send it to me again. I believe you are the one who wrote the base class.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,593

    Re: Scanning sub directories

    Quote Originally Posted by aamir121a View Post
    ... A while ago you send me a link to C++ base class to implement NT service , I seem to have lost it , could you send it to me again. I believe you are the one who wrote the base class.
    I couldn't find the thread where I could send you the link... But perhaps Igor Vartanov sent you this link in this thread?
    And BTW, he is the author of the C++ framework to create Windows service...
    Victor Nijegorodov

  5. #5
    Join Date
    Mar 2010
    Location
    Melbourne Australia
    Posts
    454

    Re: Scanning sub directories

    Thanks mate , it was Igor Vartanov , although your names are not remotely similar , my mistake

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,593

    Re: Scanning sub directories

    Quote Originally Posted by aamir121a View Post
    ... it was Igor Vartanov , although your names are not remotely similar ...

    Perhaps, the most of "usual" Russian names look like "similar" for non-Russians...
    It is like Chinese names look like "similar" for non-Chinese and Vietnamese names look like "similar" for non-Vietnamese...
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)