Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

Search a file from harddisk

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #3
      thx! It just what I want

      Comment


      • #4
        Joe Cool strikes again.

        Comment


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

          Comment

          Working...
          X