void testU::PushRun() { grid1.Clear(); intfile=0; Thread().Run(THISBACK1(Searchfile,"C:")); Thread().Run(THISBACK1(Searchfile,"E:")); while(Thread().GetCount()); String s = "Total " + AsString(intfile) + " Files"; PromptOK(s); } void testU::Searchfile(String path) { FindFile fs; String file = edit; file = path + "\\" + file; if(fs.Search(file)) { do { Time t(fs.GetLastWriteTime()); String lstime = Format("%",t); String fullname = fs.GetPath(); INTERLOCKED{ grid1.Add(fullname,lstime); intfile++; } }while(fs.Next()); } }
Report message to a moderator