|
-
Nov 25th, 2001, 11:52 AM
#1
Thread Starter
Member
Moving text files
Hi,
I need to move a text file from a directory to another.
I have the following code to do that:
Sub Manip_Files()
Dim fso As New FileSystemObject, fil1
Set fil1 = fso.GetFile("c:\testfile.txt")
fil1.Move ("c:\tmp\testfile.txt")
End Sub
It gives the error:
compile error: user-defined type not defined.
Does anybody know why?
How can I do it?
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
|