>This one goes to all you gu-ru's out there
>
>Is there a way to copy files from one directory to another programmatically? I am programming a backup utility for an application.
>
>Thanks
>
>Jim
FromDir = 'MyOrigDir'
ToDir = 'MyBakDir'
FileCt = ADIR(FileArr, m.FromDir+'\*.*', ['HS'])
FOR FileNum = 1 TO m.FileCt
COPY FILE (m.FromDir + '\' + FileArr[m.FileNum, 1) TO (m.ToDir + '\' + FileArr[m.FileNum, 1])
ENDFOR
HTH,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing