how to find the textfile in the folder and copy file from one
folder to another folder useing parameterigation in QTP



how to find the textfile in the folder and copy file from one folder to another folder useing para..

Answer / 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

More VB Script Interview Questions

. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


To get data from table which method will be used in QTP

3 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


Mention how to create a cookie using vbscript?

0 Answers  


How to create a cookie using vbscript?

0 Answers  


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

0 Answers  


In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 Answers  


Explain the string concatenation function in vbscript?

0 Answers  


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

0 Answers  


When are redim statement and preserve keyword used in the vbscript language?

0 Answers  


where can i learn VB scripint ?

0 Answers   Satyam,


Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10

2 Answers  


Categories