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 to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  


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

0 Answers  


what is diff between static and dynaic arrys?

0 Answers  


Mention what is vbscript?

0 Answers  


What is the difference between function and procedure?

0 Answers  






VBscript for QTP,best tutorial?

2 Answers   Wipro,


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


int a=4857 i need output as 7584.without using any inbuild function?

6 Answers   Aspire,


Mention characteristics of sub procedures?

0 Answers  


write a program to display the system specifications of client system with the help of vbScript.

0 Answers  


Explain the extension .hta?

0 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


Categories