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
What are the differences between sub procedures and function procedures?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
about vb scripting programs this type of all question& answers
Mention how to access array data?
How to Import data from a file (file is on the desktop) to the data table
Explain the tristate constants in vbscript?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
wht must be the interview question on corinthian information technology solutions incorporated.
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
Which function allows you to instantiate an object given its programmatic identifier or progid?
How will you get the largest subscript of an array in vbscript?
why variable name should not exceed 255 characters?
How will you release the memory acquired by an array variable in vbscript?
What are the properties of regexp object?