what is a file system object in QTP

Answer Posted / mm sarwar

Set objFile = CreateObject("Scripting.FileSystemObject")
Set myFolder = ObjFile.CreateFolder ("C:Program FilesFSO")

If objFile.FolderExists ("C:Program FilesFSO")
MsgBox "Folder is Created"
End If

Set myFile = objFile.CreateTextFile ("C:Program FilesFSO ext_01.txt")

If objFile.FileExists ("C:Program FilesFSO ext_01.txt") Then
MsgBox "File Created"
End If

myFile.WriteLine "Hello World"
myFile.Write "We are practicing UFT."
myFile.Write "One day all of us get a Job"
myFile.Close

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can i compare two databases using QTP ?

1880


how do u plan test automation?

1442


How can we conduct U-I Testing by using QTP??????

1426


What is qtpro? What is quick test pro?

558


What is the significance of “action 0” in qtp?

566






What is ‘object spy’ and what is the function of object spy in qtp?

573


Explain actions in qtp ?

553


What is keyword driven framework?

618


When and why to use descriptive programming?

603


Connect to QC using AOM.

1233


What is difference between shared and local object repository?

587


explain structured testing? plz guys with exp. do answer

1410


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

629


How many types of parameters are available in quicktest professional (qtp)?

585


what is the difference between IE & Netscape in web testing on a log in page

1788