How to copy from one script to another script in qtp

Answers were Sorted based on User's Feedback



How to copy from one script to another script in qtp..

Answer / jyoti

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

Is This Answer Correct ?    6 Yes 1 No

How to copy from one script to another script in qtp..

Answer / bfakruddin

I did get your answer friends.....

I think he asked about script not file...

if script is available in vbs file we can copy using FSO

if script is available in QTP Expert view how would you
copy..?

think...?

Is This Answer Correct ?    2 Yes 0 No

How to copy from one script to another script in qtp..

Answer / 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

How to copy from one script to another script in qtp..

Answer / vasanth

First you need to know where your scripts are store by QTP?
Each script is stored as MTS file in action folder
When you open your test script folder in explorer you will
see Action0,Action1....your scrips can be found in Action1
onwards.

now you can modify your scripts as you want. :)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

how many types of recording are there?

1 Answers  


write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  


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

0 Answers  


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.

3 Answers   Cap Gemini,


Mention what is vbscript?

0 Answers  


plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this

5 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?

4 Answers   CybAge,


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

0 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com

4 Answers   TCS,


Categories