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
give me any information abou vb script books learn quckly
How will you reverse a string in vbscript?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How to throw an error in vbscript?
How will you get a subset of a array in vbscript?
Mention how to access array data?
What is the difference between VBScript and JavaScript?
What is the difference between javascript and vbscript?
How are values assigned to string type and numeric type variables?
Explain about the support of asp for vb script functionality?
after medical test,when will be the police verification
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
why do u choose to go for testing why cant for devoloping
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