Command Line execution - how do i close the window from here

Thanx to the posts here i can now open a report from a dos batch file, set it to automatically refresh through the options panel BUT

i refresh 300 reports so how do i get the batch file to close down after the refresh otherwise i have a huge memory leak and 300 clicks to close the app :hb:


Riaan Oostuizen (BOB member since 2006-02-16)

SendKeys(Alt + “F4”)


mikca :australia: (BOB member since 2005-12-16)

Hi,

I’ve a similar requirement.
Opening a Business Objects from command line. (This is done)
Refrsh the report. (Set an option in Tools–>OPtions --> Save —> Refresh on Open)
Save the report in the text format. (Not Done)
Close the report. (Not Done).

I’ve written one batch file to open up Business Objects from command line but unable to perform step 3 and step 4.

I tried with SendKeys(Alt + “F4”) in command line to close the application. But it is not at all closing.

Please let me know is there any way to do this (other than BCA).

my environment
BO 6.5.1
Windows XP Pro

Thanks,


kehakashan (BOB member since 2005-11-09)

Ctrl + W closes open document
Alt + F, X closes BO instance
Can you use SendKeys with these values

Check this page


and look at WinKey


mikca :australia: (BOB member since 2005-12-16)

Thanks for reply.
I tried with all options but none of them worked out.
any other pointers…

Thanks,


kehakashan (BOB member since 2005-11-09)