Directory Search

  • Thread starter Thread starter james
  • Start date Start date
J

james

I have my solution files is in a directory structure say

C:\Projects\MyProjeject\myproject.sln

In the solution I need to find a file which is in a directory out side
my MyProject directory
So I need to iterate up the Directory tree starting from MyProject
directory(but excluding that).

I need a efficient code that does the job using recursion or whatever
logic thought of.
 
I have my solution files is in a directory structure say

C:\Projects\MyProjeject\myproject.sln

In the solution I need to find a file which is in a directory out side
my MyProject directory
So I need to iterate up the Directory tree starting from MyProject
directory(but excluding that).

I need a efficient code that does the job using recursion or whatever
logic thought of.

When you say you "need to file a file," do you mean you need the IDE to find
a file and refer to it at DESIGN time or do you mean your PROGRAM needs to
find a file at RUN time?
 
Back
Top