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

we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

1729


How do you convert manual test cases to automated test cases?

667


Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)

1641


How many ways we can parameterize data in quicktest professional (qtp)?

672


What is the difference in testing a client-server application and a web application?

653






i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?

1653


what are the utilities and drivers

1925


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

709


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

770


Why is Client side image is preferred over server side image?

1543


Define Environment Variable in UFT and its uses?

692


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1599


What are the different attribute used with regular expression?

614


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

1682


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

699