Rename dataport file fails

galmokgalmok Member Posts: 44
I have a dataport that should move the file it has just imported to backup directory.

RENAME(FromPath+recFile.Name, ToPath+recFile.Name);

This fails with a file in use. I guess the dataport hasn't closed the handle yet. How do I make the rename work?

I have read the solution in this forum, but can't find it anymore. :-/


  • NagiNagi Member Posts: 151
    CurrFile.CLOSE; // Add it to the line directly preceding RENAME.

  • galmokgalmok Member Posts: 44
    Thanks. I knew it was simple, but just couldn't remember it. :-D
Sign In or Register to comment.