Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File system object
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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....
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
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
You should create an object of Filesystemobject first then use it for movefile
fso.Movefile instead of Filesystemobject.movefile

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thankz man...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  System Utility Syntax chita26 1 4,911 11-04-2014, 12:41 PM
Last Post: vinod123
  Delete icon in System tray arpan 2 4,046 07-12-2013, 07:38 PM
Last Post: arpan
Exclamation How to get the system time using QTP qtplearner88 1 11,838 05-30-2012, 05:42 PM
Last Post: ssvali
  How to use the system while running the regression set from QC rahuldps 2 3,413 06-08-2011, 12:58 PM
Last Post: rahuldps
  To Capture the ip address od the system sowmya.rao 1 3,402 10-19-2009, 11:06 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)