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

Check whether given Number is Even or Odd?

2 Answers   HDFC,


am giving to one number u can set into that in date format.u can use any methods

1 Answers   HP,


when we use filter funtiom invb script(QTP)

0 Answers   TCS,


reverse the string without using reverse string?

2 Answers   CSS Corp,


Why is error handling required?

0 Answers  






Why is it recommended to close the database connection every time after the work is completed?

0 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


What are the rules to name variable in vbscript?

0 Answers  


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


What is the difference between Javascript & Vbscript?

2 Answers  


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

0 Answers  


How should i Create Email invite with server-side Coding?

0 Answers   Altair,


Categories