Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File system object
#1
Solved: 10 Years, 9 Months, 1 Week 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


Messages In This Thread
File system object - by rajeshdizzy - 07-30-2009, 01:42 PM
RE: File system object - by Saket - 07-30-2009, 01:50 PM
RE: File system object - by rajeshdizzy - 07-31-2009, 04:09 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)