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
Which functionalities of QTP used in banking project?
Can you write a script to check if the folder exists or not?
What is throw object?
What are the differences between quicktest professional and winrunner?
What is a recovery scenario?
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 ?
Have you used xml check point in your project? How?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What is checking bitmaps?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
how to write xml output check point bu useing descriptive programing .means without useing output check point
wht type of User defined functions or Java Releated functions do we write in VB scripting
We stored into the objects OR and then write the scripting