i have .xls,.txt,.doc files are there (together). i want
find only .xls file among them? how can we write function?
Answer Posted / kamesh
using the extention (.xls) in code..see below code
Here i open the file from mentioned path and read and write
the values on that.
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\DIM.txt", 1, True) ' open to
empty file and also use for open the file which is already
created
WriteLineToFile = f.ReadAll 'Read all the file line to
line
msgbox WriteLineToFile
Set MyFile1 = fso.CreateTextFile
("c:\kamesh.txt",True) 'create new empty file
MyFile1.WriteLine WriteLineToFile ' Write all the stuf
in created file
MyFile1.Close
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What do you mean by checkpoints in qtp?
Explain quicktest professional testing process?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
What are the features supported by UFT?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
What is quicktest professional?
why you have standardized functions? plzzz guys with real time exp. do answer
If object is not recognized by qtp but the object is standard object what is your approach?
how to test Web application using QTP software
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
What are the key points to create a framework in QTP for oracle forms?