Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

14349


Explain about the extension .hta?

1124


How can the spaces from the string be removed?

1054


Explain about constants in vb script?

1079


How will you get the largest subscript of an array in vbscript?

1219


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1981


Explain the .wsf files?

1035


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.

1894


what is event handling?

1055


filter the array values without using filter function?

2170


How to open browser in vb script?

1324


Mention what is the main difference between function and sub-procedure?

1106


Which in-built function related to an array joins substrings into one string in the vbscript language?

996


What purpose does ‘on error resume next’ serves?

1145


What is the difference between VBScript and JavaScript?

2785