Explain abt the File System Object in QTP with ex

Answers were Sorted based on User's Feedback



Explain abt the File System Object in QTP with ex..

Answer / mittal

the above should be
y.writeline "welcome" instead of x.writeline

Is This Answer Correct ?    7 Yes 0 No

Explain abt the File System Object in QTP with ex..

Answer / rico

The FileSystem Object is the object that is used to
manipulate the filesystem in Active Server. Moving files,
opening and reading text files, and looking at drive space
are a few of the many functions of the FileSystem Object.
The FileSystem Object actually contains five objects: the
main Filesystem object, the Drive object, the Folder
object, the File object, and the TextStream object.

Is This Answer Correct ?    6 Yes 0 No

Explain abt the File System Object in QTP with ex..

Answer / suresh

---Create Instances of Object---
set x= CreateObject(Scripting.FileSystemObject)
set y=x.CreateTextFile("c:\a.xls",true)
x.writeline "welcome"
Used for creating xls/notepad/doc instances, with which we
can store data into it.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More QTP Interview Questions

Which environments does qtp support?

0 Answers  


before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

2 Answers   Keane India Ltd,


Hi Friends, I'm new to QTP. I want to write a function in QTP for below senario. In an Excel sheet column B, I Have 10 Url/Links, and in Colum A there is a Flag as Y and N. My test should run only on those iterations which are flagged as Y. Please help, Thanks

6 Answers  


What is difference between QC and TD?

8 Answers  


What are the QTP advantages and disadvantages?

6 Answers  






does the vb script knowledge is mandatery in testing using QTP

1 Answers  


What are they Advantages and Disadvantages in QTP 9.2?

1 Answers   Infotech,


write a script for get the following result: username password frm the string1="A=username" string2="B=password"

3 Answers   Oracle,


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

0 Answers   DigiTech,


how you test broken link using the automated tool QTP ?

4 Answers   Oracle,


what is the Exact Meaning of Environment Variables?

10 Answers   AppLabs,


How to remove associated function library?

0 Answers  


Categories