Hello All,
Below is code that adds files to a folder, supposedly in order determeined by the index on the table "mixed.dbf", which would be hip number order.
I'd like to view these files with the Windows Explore program in the order they were added to the folder (ie; hip number) but it seems that Explore orders the files in a pre-determined manner, through the headers (name, type, size, date modified).
Is there a way to turn the sort function in Explore off, so files can be viewed in the order they were added to the folder?
***MIXEDCOMBINE.PRG
use mixed order hip_no in 0
use ahorse in 0
select mixed
scan
mname = name
select ahorse
locate for name = trim(mname)
if ! found()
IF EOF()
LOOP
ENDIF
SKIP
loop
endif
store alltrim(name) to cname
store "c:\pedigrees\mixedcombined\pedigrees\" to cdestination
if ! file(cname)
wait 'not found'
else
copy file (cname) to cdestination + (cname)
endif
endscan
close data
return
Thanks for any advice you can give me.
Jim Harvey