December 12, 2006
I needed to stop windows applications from command line
or from a .bat file …
but there is not any utility (maybe i dont know )
similar linux kill command shipped with Windows.
beyondlogic give a free utility process.exe,
just put it somewhere in your path.
(forexample c:\windows\system32 )
http://www.beyondlogic.org/consulting/processutil/processutil.htm
Leave a Comment » |
shortcuts |
Permalink
Posted by mr1yh1
December 9, 2006
We may start some services only when we needed.
I have mysql and apache installed as services in my windows machine.
for simplfying to start and to stop.
1-) i set their startup type as “manual” in services window.
2-) i put 2 of .bat files in my desktop
lamp-start.bat dosyası :
net start “Apache2.2″
net start “MySQL”
and
lamp-stop.bat dosyası :
net stop “Apache2.2″
net stop “MySQL”
now its simple to start and stop group of services.
their name may be different in your machine.
look up them in “control panel/administrative tools/services ,
double click and check “display name”…
also its important
if you want to start or stop services which depend each other
be careful about the order, both in start and stop.
this method is specialy usefull for vmware services ( it has 5 services)
in my machine.
—————————————————————-
Bazı servislerin kullanılacağı zaman başlatılması gerekli.
bunları “manual” olarak ayarlayabiliriz.
başlatılması ve durdurulmalarını .bat dosyaları aracılığı ile kolaylaştırabiliriz.
Örneğin, Apache web server ve mySQL veri tabanı ,
makinemde servis olarak kurulu.
Sadece ihtiyaç duyduğumda çalıştırmak için
1-)servisleri manula olarak ayarladım.
2-)iki .bat dosyasını masaüstüne ekledim.
lamp-start.bat dosyası :
net start “Apache2.2″
net start “MySQL”
lamp-stop.bat dosyası :
net stop “Apache2.2″
net stop “MySQL”
servislerin isimleri sizin makinanızda farklı olabilir.
bu işlemi yaparken servisler arasında bağımlılık var ise,
başlatma ve durdurma sırasına dikkat etmek gerekiyor.
2 Comments |
shortcuts |
Permalink
Posted by mr1yh1