Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the problem with this code? Pls reply ASAP
#2
Not Solved
Dear Kishore Every thing is fine what you need to do is
Objects which u created names are mismatching so correct all names then u can run smoothly.
Code:
Dim fso, objFile1, objFile2
Set objFSO=CreateObject("Scripting.FileSystemObject")
objFile1=objFSO.CreateTextFile("C:\testfile.txt", true)

Const ForWriting=2
Set objFSO=CreateObject("Scripting.FileSystemObject")
objFile2=objFSO.OpenTextFile("C:\testfile.txt", ForWriting, True)
objFile1.write str

here is the code
let me kwow ur resukts
Reply


Messages In This Thread
RE: What is the problem with this code? Pls reply ASAP - by seetu - 12-09-2008, 12:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to solve / record SAP (Transaction code PA40) Infotypes sequence problem in QTP kamal262007 0 2,298 02-04-2013, 11:25 AM
Last Post: kamal262007
  systemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,681 01-24-2013, 01:22 PM
Last Post: senthil.kumar
  QTP gets crashed on start up or on save a script. Pls advise pandeche 2 3,499 04-16-2012, 12:14 PM
Last Post: leema
  Please suggest some books to learn VBScript basics for qtp. Pls share if u have any. GSuba 0 4,072 04-08-2011, 12:55 AM
Last Post: GSuba
  Does any has .ISO file/package for QTP 9.0 or QTP 10 or QTP 11 ..Email pls? amipraj1 1 3,554 04-06-2011, 09:52 AM
Last Post: manishbhalshankar

Forum Jump:


Users browsing this thread: 1 Guest(s)