i am using QTP10 and i am trying to rename a specific file among a lot of files ,like rename "test.doc" to "mytest.doc".
in xp system i select the file named "test.doc" in the folder named "test" ,code as follow :
but in win7 system i can not Select the file by name
Window("test").WinObject"DiectUHWND".Click 55, 59, micRightBtn
is it means QTP can not identify the object? and how to solve the problem.
Re: select a file by its name inside a folder in win7
i need to test some files like **.docx **.pptx **.txt,during the test,i have to simulate user actions including copy ,delete,cut,read and write ,so i do not know if set Fso can finish those jobs.
anyway ,thanks a lot.