DelphiFAQ Home Search:

How to start or stop Interbase service

 

comments4 comments. Current rating: 4 stars (2 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:

2013-02-08, 08:21:52
 
rating
aucfvwh <a href=' http://viagraonlinete.com/ '>buying viagra online</a> vMeBG <a href=' http://cialisonlinete.com/ '>buy cialis soft online</a> 8072
2015-01-30, 00:21:09
anonymous from Lochristi, Belgium  
In fact there is a word similar like that in Hindi for a Crow. You might have heard the famuos song Maye Ni Maye Munder Pe Teri Bol Raha Hai Kaaga which if translated means Mother, mother, on your parapet a crow is cawing So Kaaga in Hindi (Brij Language would mean a Crow), but in this case it is Kaaka.
2017-01-10, 14:30:39
anonymous from Indonesia  
JIKA ANDA BUTUH ANGKA TOGEL GAIB (_SGP,HKG,MLYS,SYD,THLND,TAIWAN_)
YANG DI JAMIN 100% TEMBUS SILAHKAN
Call/Sms Di No_o82_319_2o8_865_ AKI NUGROHO
Insya Allah Beliau Akan Siap Membantu Menyelesaikan Smua Masalah Anda,.
(_..KUNCI KESUKSESAN..._)
1. Pikiran Yang Positif,
2. Keyakinan Yang Bulat
3. Percaya Bahwa Kita Akan Berhasil
.
2017-05-17, 06:08:51
Cinda from Taipei, Taiwan  
rating
Hey There. I found your blog using msn. This is a very well written article.
I'll make sure to bookmark it and come back to read more of your useful info.

Thanks for the post. I will definitely return.

 

 

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: