How to copy from one script to another script in qtp

Answer Posted / jyoti

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

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are available in the vbscript language?

763


Explain the scope of the variables using dim, public, and private keywords respectively.

955


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

722


Which object provide information about a single runtime error in a vbscript?

841


i need to sort the data using qtp script for this how i need to write a qtp script

3465


How to Import data from a file (file is on the desktop) to the data table

1770


How will you release the memory acquired by an array variable in vbscript?

1001


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

740


What purpose does ‘on error resume next’ serves?

812


What are the environments supported by vbscript language?

721


What are the 2 ways in which a variable can be declared in the vbscript language?

818


Explain about vb script?

986


Which operator can be used to do an xor operation in vbscript?

984


What is the use of option explicit in vbscript?

776


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1856