|
-
Mar 22nd, 2004, 08:32 AM
#1
Thread Starter
Fanatic Member
grab a file and put it in anoter
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|