|
-
Apr 16th, 2001, 04:09 AM
#1
Thread Starter
Addicted Member
-
Apr 16th, 2001, 04:12 AM
#2
Frenzied Member
Try this:
Code:
FileCopy "thefile.txt", "thefile2.txt"
-
Apr 16th, 2001, 04:43 AM
#3
cyber castens example creates another copy of the original file!
Name srcfile as destfile
actually renames the file
BE SURE TO INCLUDE FILE EXTENSIONS
-
Apr 16th, 2001, 05:29 AM
#4
Frenzied Member
Name oldpathname As newpathname
Dim OldName, NewName
OldName = "OLDFILE": NewName = "NEWFILE" ' Define file names.
Name OldName As NewName ' Rename file.
OldName = "C:\MYDIR\OLDFILE": NewName = "C:\YOURDIR\NEWFILE"
Name OldName As NewName ' Move and rename file.
-
Apr 16th, 2001, 05:32 AM
#5
-
Apr 16th, 2001, 06:14 AM
#6
The Name statement is much better to use than FileCopy statement. Takes up less time because if you use the Name statement, you don't have to go back and delete the old file .
The Name statement can also be used to move files.
-
Apr 16th, 2001, 10:05 AM
#7
Code:
Name "MyFile" As "MyNewFile"
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
|