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

How to add synchronisation points in qtp?

780


What are the recording modes in qtp?

792


Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1743


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1571


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1671


Does QTP record on Objects created on XWindows Environment?

1901


What is expert view in qtp?

809


Is it possible to merge two object repository files in qtp?

842


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2681


How to modify the text checkpoint?

822


What are some test assets and related extensions of qtp?

785


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

6736


What is parameter in qtp?

859


When to use descriptive programming?

825


whow much strong on VB and C?

1693