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

give me any information abou vb script books learn quckly

1667


How will you reverse a string in vbscript?

626


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

614


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3284


How to throw an error in vbscript?

616






How will you get a subset of a array in vbscript?

593


Mention how to access array data?

524


What is the difference between VBScript and JavaScript?

2077


What is the difference between javascript and vbscript?

543


How are values assigned to string type and numeric type variables?

544


Explain about the support of asp for vb script functionality?

534


after medical test,when will be the police verification

1730


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3042


why do u choose to go for testing why cant for devoloping

1604


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1421