Search a file from harddisk

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pscj
    Forum Member
    • Jan 2005
    • 2

    Search a file from harddisk

    Compared with other install tools,Setup Factory 7.0 is powerful in my opinion.
    A problem confused me,I want search a file from target harddisk.
    I only find the function "File.Find",but it search file in a partition,not in all harddisk.
  • Brett
    Indigo Rose Staff Member
    • Jan 2000
    • 2001

    #2
    This code will find all fixed drives and search them:

    Code:
    tblDrives = Drive.Enumerate();
    if(tblDrives)then
    	for i, strDrive in tblDrives do
    		nType = Drive.GetType(strDrive);
    		if(nType == DRIVE_FIXED)then
    			tblResults = File.Find(strDrive,"*.*",true);
    		end
    	end
    end

    Comment

    • pscj
      Forum Member
      • Jan 2005
      • 2

      #3
      thx! It just what I want

      Comment

      • Corey
        Indigo Rose Staff Alumni
        • Aug 2002
        • 9745

        #4
        Joe Cool strikes again.

        Comment

        • Intrigued
          Indigo Rose Customer
          • Dec 2003
          • 6138

          #5
          I put this straight away into my copy of Code Keeper! *sinister hobgoblin laugh*
          Intrigued

          Comment

          Working...
          X