How to copy from one script to another script in qtp

Answer Posted / avishek

Set fso=CreateObject("Scripting.FileSystemObject")
obj.CopyFile "C:\test.txt", "D:\test.txt"
set fso = nothing

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is vbscript procedures?

622


after medical test,when will be the police verification

1805


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1147


Does VB/Win make standalone .EXE files?

3006


What is byref and byval parameters in vbscript?

692






How to open excel in vb script?

660


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1578


What are the 2 ways to pass a value to the function?

597


Explain about adodb.stream class?

698


Why is error handling required?

651


Explain about the support of asp for vb script functionality?

613


write any ttest cases using check points and parameterization

1915


What are lbound and ubound in the vbscript language?

704


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

964


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1857