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

Which functionalities of QTP used in banking project?

1911


Can you write a script to check if the folder exists or not?

507


What is throw object?

1736


What are the differences between quicktest professional and winrunner?

534


What is a recovery scenario?

566






Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1465


Have you used xml check point in your project? How?

539


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

599


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1829


What is checking bitmaps?

548


Suggest and Define a solution for an application whose objects are not recognized by UFT?

660


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

576


how to write xml output check point bu useing descriptive programing .means without useing output check point

1646


wht type of User defined functions or Java Releated functions do we write in VB scripting

1817


We stored into the objects OR and then write the scripting

1536