Hi all,

This is a sample code 
it just works for particular folder only and not subfolder

   System.IO.DirectoryInfo di;
    System.Type arrayType;
    System.Array array;
    System.IO..FileInfo fi;
    int i;
    int l; 
                di = new System.IO.DirectoryInfo(filePath);
                arrayType = System.Type::GetType("System.IO.FileInfo");
                array = System.Array::CreateInstance(arrayType, 1);
                array = di.GetFiles();
                l = array.get_Length();
                for (i = 0; i < l; i++)
                {
                    fi = array.GetValue(i);
                    fileNameOpen = fi.get_FullName();
                    this.readFile();
                }

Thanks and regards 
Anand



________________________________
From: anand patil <anandsp...@yahoo.co.in>
To: Axapta-Knowledge-Village@yahoogroups.com
Sent: Monday, 24 August, 2009 8:34:35 PM
Subject: [Axapta-Knowledge-Village] Fw: File search in folder and subfolder..

  


Hi all

 i wanna help regarding the search the *.pdf folders .
I am able to get the files name from a specific folder only using WINAPI, i 
want get the files name from folder as well as subfolder in X++;
Can you help me on this.

Thanks and regards

Anand.

Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. 
http://downloads. yahoo.com/ in/internetexplo rer/





      Yahoo! recommends that you upgrade to the new and safer Internet Explorer 
8. http://downloads.yahoo.com/in/internetexplorer/

Reply via email to