DelphiFAQ Home Search:

How to start or stop Interbase service

 

comments20 comments. Current rating: 3 stars (18 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

Comments:

You are on page 1 of 2, other pages: [1] 2
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.
2020-06-24, 01:34:39
Dwain  
rating
That is a really good tip particularly to those fresh to the blogosphere.
Simple but very accurate informationÂ… Thanks for sharing this one.
A must read post!
2020-06-26, 20:19:26
Tanisha  
rating
canadian pharmacy cialis 20mg
2020-06-28, 00:42:20
Madelaine  
rating
what would happen if a girl took cialis
2020-06-28, 04:17:16
Rolland  
rating
viagra usa
2020-07-01, 13:37:41
Joseph from Lebanon  
rating
cenforce 200 mg for sale
2020-07-03, 18:05:34
Eloise from Den Haag, Netherlands  
rating
buy cialis online
2020-07-11, 16:07:33
Arianne  
rating
albuterol coupon 2020
2020-07-18, 16:15:36
Elmo from United Kingdom  
rating
viagra without a doctor prescription not scam
2020-07-18, 23:41:33
Ernie  
rating
chloroquine online canada
2020-07-19, 12:25:37
Archie from Switzerland  
rating
cialis online pharmacy
2020-07-20, 19:20:16
Kirk  
rating
price of viagra at walmart
You are on page 1 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: