Progress progress;
progress.SetText("Searching files");
progress.Step(1); // To put something in the progress bar
progress.Create(); // To show the window
Array<String> files = SearchFile("C:\\Upp", "*.log"); // Just a sample
progress.SetText("Copying files");
for (int i = 0; i < files.GetCount(); ++i) {
progress.Set(i + 1, files.GetCount()); // To show the progress
FileCopy(files[i], AppendFileName("c:\\", GetFileName(files[i]))); // Just a sample
}