how to find the textfile in the folder and copy file from one
folder to another folder useing parameterigation in QTP
Answer Posted / b.hari babu
Function Replacinfile(SourceFile,Destination File)
Set Fso=CreateObject("Scripting .FilesystemObject")
If Fso.Exisit(SourceFile) Then
Fso.CopyFile(SourceFile,Destination File)
End If
End Function
Call Replacinfile(Sourc Filepath,Destination Filepath)
SourceFile=Sourc Filepath
Destination File=Destination Filepath
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which function allows you to instantiate an object given its programmatic identifier or progid?
write a program to display configuration of a local system with the help of vb script.
Explain the scope of the variables using dim, public, and private keywords respectively.
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Mention the rules for using option explicit statement?
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
How are values assigned to string type and numeric type variables?
How will you get the octal value of the given number in vbscript?
filter the array values without using filter function?
How to create a cookie using vbscript?
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.
How to declare an array in vbscript?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Does VB/Win make standalone .EXE files?
Explain the operator precedence in vb script?