Martin Fitzgibbons wrote: > > Alain > > All seems ok today. I think the problem was it locking up on a folder I was > using with PC jpg files in it. > > As each picture loads I am trying to use the RENAME command to rename the > files as they load but it won't work. I can rename anything other than the > current picture being displayed. Any suggestions? I thought the file would be > free once it was loaded into the handle. > Hi Martin, I'm not sure to clearly understand what you are trying to do. I think it is not a good idea to rename the files while you are scanning the folder's content. You might possibly rename all the files before trying to open any one of them. BTW, I forgot a KillPicture call in the previous sample that I have posted. The USR IMAGEFILETOPICT returns a handle to a PICT and we are responsible for the disposing of that handle. -- Cheers Alain ----------------------------------------------------- FB^3 in Europe: http://euro.futurebasic.com/ FB II Pouch: http://www.pixmix.com/FB/outils.html -----------------------------------------------------