Greetings,

In my program, I extract a text file; and then after extraction, I rename the .txt file as a .~xt file, so that it will not be imported again.

So, what would be a way to take the backupfile (i.e. the ".~xt" file and put it in a different folder. Say I want the ".~xt" file to go in a folder called "C:\backupFiles" ?

Right now I have this code below, which simply renames the file, but keeps the file in its present directory.

bakfile = Mid(pathfile(i), 1, (Len(pathfile(i)) - 4)) & "bak" & nNow & ".~xt" 'formerly "~sv", changed to "~xt" by jrm 3/22/04

My goal is to send it to a backup directory. What do I need to do?

One other note, I do not want to keep a copy of the backup in the present directory; I just want to have it in "C:\backupFiles".

Thank you,
Jim