... repeat files.setrane(path, 'c:\'); files.find('-'); files.setrange(path, 'c:\foo\bar\'); if files.find('-') then movefile; until foo = bar; ...