07-30-2009, 01:42 PM
Hi bloggers....
i have created a text file and folder in a drive using the fso.but when i use to create copyfolder.i am geting the error like this...
when i move the file using filesystemobject.movefile....
Error as
Object required: 'Filesystemobject
i have created a text file and folder in a drive using the fso.but when i use to create copyfolder.i am geting the error like this...
when i move the file using filesystemobject.movefile....
Code:
Dim fso,myfile
Set fso=createobject("scripting.filesystemobject")
Set myfile=fso.createtextfile("D:\Rajeshdizzy.txt",true)
myfile.writeline("Rajesh is the best")
Set MyFile = fso.GetFile("D:\Rajeshdizzy.txt")
MyFile.Copy ("D:\CRP\test2.txt")
Filesystemobject.movefile("D:\rajeshdizzy.txt")
Error as
Object required: 'Filesystemobject