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 in-built function is used to format the number in the vbscript language?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
What is the difference between VBScript and JavaScript?
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
How can you fetch the value of a cookie?
How to access array data?
Which loop is used in case of arrays in the vbscript language?
Explain the tristate constants in vbscript?
What is the use of the instr function?
What are the special sub-types in vbscript?
What is the difference between do until loop and do while loop?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Mention what is the main difference between function and sub-procedure?
Description.Create
How will you reverse a string in vbscript?