12-09-2010, 11:37 AM
Hi SreeKanth,
Thanks for replying.
Here is my whole code which i was trying to run.
Sometimes it got stuck up at line 2 or on line 12.
My requirement is that i want my script for different files saved at different location.i read about this on net & i found that i have to add Object in OR,i did that also.still it is not working.
Thanks for replying.
Here is my whole code which i was trying to run.
Sometimes it got stuck up at line 2 or on line 12.
My requirement is that i want my script for different files saved at different location.i read about this on net & i found that i have to add Object in OR,i did that also.still it is not working.
Code:
Dialog("SQL Recovery").WinToolbar("ToolbarWindow32").Press 1
Dialog("SQL Recovery").Dialog("Open").WinListView("Look in:").Select "Test.mdf"
Dialog("SQL Recovery").Dialog("Open").WinButton("Open").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Close").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("No").Click
Dialog("SQL Recovery").WinToolbar("ToolbarWindow32").Press 4
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinEdit("Server Name :").Set "jyoti"
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinEdit("Database Name :").Set "Test1"
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinButton("Export/Save").Click
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").Dialog("SQLRecovery").WinButton("OK").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Close").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("Browse For Folder").WinTreeView("Please select a folder").Select "Desktop"
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("Browse For Folder").WinButton("OK").Click
Dialog("SQL Recovery").Close
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery_2").Minimize