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

Is VB Script Case sensitive or Case insensitive?

734


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

630


why do u choose to go for testing why cant for devoloping

1702


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

3321


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

662






Explain the operator precedence in vb script?

739


How to Enter Values on the Command promt using VB script

1616


Mention what is vbscript procedures?

622


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?

620


Why to use option explicit in vb script?

701


Explain the extension .hta?

629


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1857


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1519


How to open excel in vb script?

660


What are the different types of operators and their order of precedence?

662