>>>>SET DEFAULT TO c:\citisprint\attach
>>>>
>>>>lcFileName = SYS(2000,"c:\citisprint\sttach\*.*")
>>>>DO WHILE NOT EMPTY(lcFileName)
>>>> RENAME (lcFileName) TO ("c:\citisprint\attachxls\"+lcFileName) && Be careful, this will MOVE file not just copy
>>>> lcFileName = SYS(2000,"c:\citisprint\attach\*.*",1)
>>>>ENDDO
>>>
>>>The files must be on the same drive for this code to work. If they are on separate drives, you must first copy the files, make sure that they are actually copied and then delete the old ones.
>>
>>Not required to be on the same drive. I use the same syntax for years to move files from my camera's SD card (usually appears as K: disk or some such letter) to a set of folders (by year and date) on my Q: drive, no problem at all.
>
>Now that you say it.... Funny how one forgets things.
Or remembers them from some XX century version when they (or just one) may have been right?