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

How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2486


What is select case statement?

590


Write a code to print numbers from 5 to 0?

673


How can the spaces from the string be removed?

587


Mention what is variant in vbscript?

548






What is vbscript?

590


How will you convert a string to lower case string using vbscript?

550


What are the advantages of vbscript?

636


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

509


what is the difference between modular and data and keyword driven framework

1736


How will you check that a variable is an array in vbscript?

540


Explain about operator precedence in vb script?

573


who will create the object?

1479


How are values assigned to string type and numeric type variables?

533


How will you get the octal value of the given number in vbscript?

494