×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

HOw to kill/terminate EBMNGR.EXE from attachmate macro

HOw to kill/terminate EBMNGR.EXE from attachmate macro

HOw to kill/terminate EBMNGR.EXE from attachmate macro

(OP)
Hi everyone.

For some strange reason a macro runs fine under Attachmate Extra! 6.5, but in Attachmate Extra! Enterprise 7.1 does not.

Digging here (in Tek-Tips) find a solution for some reason the EBMNGR.EXE does not run properly then I have a idea "why not execute the .exe from the macro??" voila that's work, but I look in the task manager and every time the macro runs populates one more instance of the EBMNGR.EXE, the question is how can I terminate the EBMNGR.EXE's before the macro runs again, by the way this macro was assigned to the enter key. Here is my attempt.


CODE -->

'***Excel Declr*****
        ' Dim xl As Object, xl_workbook As Object, xl_sheet As Object
 '*******************
declare sub gatherinfo(g as integer)


Sub Main
RESET


'--------------------------------------------------------------------------------
' Get the main system object
	Dim Sessions As Object
	Dim System As Object
 
Dim StrtEbm
StrtEbm = Shell("C:\Program Files\Attachmate\E!E2K\ebmngr.exe")
 
 	Set System = CreateObject("EXTRA.System")	' Gets the system object
	If (System is Nothing) Then
		Msgbox "Could not create the EXTRA System object.  Stopping macro playback."
		STOP
	End If
	Set Sessions = System.Sessions

	If (Sessions is Nothing) Then
		Msgbox "Could not create the Sessions collection object.  Stopping macro playback."
		STOP
	End If
'--------------------------------------------------------------------------------
' Set the default wait timeout value
	SettleTime% = 200		' milliseconds
        TOvalue& = 300000
	OldSystemTimeout& = System.TimeoutValue
	If (TOvalue& > OldSystemTimeout) Then
		System.TimeoutValue = TOvalue&
	End If
 ' Get the necessary Session Object
	Dim Sess0 As Object
	Set Sess0 = System.ActiveSession
	If (Sess0 is Nothing) Then
		Msgbox "Could not create the Session object.  Stopping macro playback."
		STOP
	End If 

Any help will be really appreciated.

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close