Oracle Partner Oracle Partner Oracle Accelerate
ADI Services

Knowledge Base

ADI RSS
« Back to Knowledge Base

[ID:0136] Ghost instances of excel running and are unable to perform Essbase retrieves

Technology: Windows Batch File

Definition: For users who like to open multiple instances of excel and tend to have “ghost” instances of excel running and are unable to perform Essbase retrieves.

Solution: You can create a batch file that runs a vbs file to kill all instances of excel so that you don’t have to search through task manager to find the “ghost” instance.
Create a vbs file with the code below:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'Excel.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
Create a windows batch file to call this script and when the batch runs, it will kill all instances of excel.

When the user reopends excel, Essbase should retrieve normally. Example code below:
@echo on
REM Created By: Adi Strategies
REM Date Created: 03/18/2011
REM Script Definition: Kills Excel
REM reports.
TITLE RUN_EXCEl_REPORTS.bat
ECHO **************************************************
"C:\Users\User\ADI\Client\reports\Kill_Excel.vbs"
ECHO ==================================================

Download: https://adistrategies.egnyte.com/h-s/20111026/af998c01a7004796

Categories: | Other |

Added: 2011-10-25

 


print Print Page |Share Via » Share Share LinkedIn Share in Facebok Delicious google digg reddit



Check All | Clear All | Show All | HELP
  • To search all categories, make sure all categories are selected.
  • You must select at least one category in order to see any search results.
  • Search words are not case sensitive.
  • If you want to see all the entries under one category just select the category and click search. Leave the search box blank.
  • If you want to see all the entries under multiple categories, select the categories and click search. Leave the search box blank.
  • Clear all clears all selections.
  • Select all selects all categories.
  • Show all selects all categories and shows all entries.

Close Help