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 any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1295


What are parameterizing tests?

559


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1925


What is the difference between analog and low level recording?

636


Where to use function or action?

682






How the exception handling can be done using quicktest professional (qtp)?

579


what r the main attributes of test automation?

1484


what is ODC and GDC?

7368


Can any body please tell me the steps of keyword driven framework of QTP.

1580


What is checkpoint in qtp?

564


Hi All, How to get repeated word in string . Thanks Balaji

950


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1409


Is any limitation to xml checkpoints?

573


how do u plan test automation?

1456


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2678