05 November 2017

Rename FileName using UFT

Set obj = createobject("Scripting.FileSystemObject")

f1 = "E:\test\New Text Document.txt"
f2 = "E:\test\old Text Document.txt"

If obj.FileExists(f1) Then
    obj.MoveFile f1,f2
End If

No comments:

Post a Comment

AOM - Automation Object Model

'Creating QuicTest Object Set  qtapp =  createobject ( "QuickTest.Application" ) 'Launching the Application If  qtapp...