DelphiFAQ Home Search:

How to start or stop Interbase service

 

comments19 comments. Current rating: 3 stars (17 votes). Leave comments and/ or rate it.

Do you need to shutdown the Interbase db service e.g. for an installation program and afterwards restart it?

You could do this with a lot of Delphi code involving unit WinSvc and function calls to
OpenSCManager()
EnumServicesStatus()
OpenService()
StartService() or ControlService().

But luckily there is a much easier solution that uses the NET.EXE program which has been part of Windows since Windows for Workgroups (Wfw 3.11). Just create the two batch files

IBSTOP.BAT
IBSTART.BAT

and call them from your code. You may want to call them and wait for their termination.

IBSTOP.BAT
=============
@echo off
net stop "InterBase Guardian" >NULL
net stop "InterBase Server" >NULL

IBSTART.BAT
=============
@echo off
net start "Interbase Guardian" >NULL

Content-type: text/html

Comments:

You are on page 2 of 2, other pages: 1 [2]
2020-07-22, 15:12:25
Effie from Lebanon  
rating
how long does cialis last
2020-07-27, 22:29:07
Issac from Greece  
rating
where can i get tylenol
2020-08-04, 00:05:24
Hope from Ukraine  
rating
hydroxychloroquine cost at walmart
2020-08-17, 18:05:16
Chanel from Den Haag, Netherlands  
rating
price of albuterol sulfate
You are on page 2 of 2, other pages: 1 [2]

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: