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

What methods are used to create text files and open text files in the vbscript language?

538


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

528


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

561


What is the difference between a dictionary and an array?

583


Mention what are the rules to name variable in vbscript?

540






1. How do declare public variable in vb scripts?

1579


Explain the filter expression?

634


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1852


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3038


What is event handling in vbscript?

605


what is the use of QCUtil? explain with one example?

6326


What are subprocedures in vbscript?

666


When does ‘on click of button’ event gets triggered in the vbscript language?

552


what types of bugs will we find out in banking projects for automation testing?

1768


What are the rules to name variable in vbscript?

587