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
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Explain about the extension .hta?
How can the spaces from the string be removed?
Explain about constants in vb script?
How will you get the largest subscript of an array in vbscript?
How do i automate a website www.flyashx.com without having any test cases witin a week time.
Explain the .wsf files?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
what is event handling?
filter the array values without using filter function?
How to open browser in vb script?
Mention what is the main difference between function and sub-procedure?
Which in-built function related to an array joins substrings into one string in the vbscript language?
What purpose does ‘on error resume next’ serves?
What is the difference between VBScript and JavaScript?