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


Please Help Members By Posting Answers For Below Questions

Which in-built function is used to format the number in the vbscript language?

755


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2577


What is the difference between VBScript and JavaScript?

2288


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1445


How can you fetch the value of a cookie?

745


How to access array data?

724


Which loop is used in case of arrays in the vbscript language?

692


Explain the tristate constants in vbscript?

747


What is the use of the instr function?

765


What are the special sub-types in vbscript?

737


What is the difference between do until loop and do while loop?

768


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3494


Mention what is the main difference between function and sub-procedure?

740


Description.Create

2354


How will you reverse a string in vbscript?

819