Simple restarter of dvblink_server service

DVBLink Remote API clients and tools

Simple restarter of dvblink_server service

Postby Saentist » Sun Dec 02, 2012 10:03 pm

Programed for simplicity, with lot of bugs

Code: Select all
@echo off
color 0d
echo Stoping service...
color 0e
net stop dvblink_server
color 0d
echo Starting service...
color 0e
net start dvblink_server
color 0d
echo READY press any key
pause>nul



Howto use:
1. Copy to new text file
2. Save as: "restart_dvblink_service.cmd" on desktop
3. Run as Administrator

ToDo:
1. Ask for password in script
Terratec Cinergy S2 USB HD rev.1
clients ubuntu 12.04 + XBMC PVR by Pulse-Eight and Xtreamer MK1 both via WiFi
Saentist
 
Posts: 86
Joined: Thu May 10, 2012 12:01 pm
Location: Sofia / Rome


Re: Simple manager of dvblink_server service

Postby Saentist » Sun Dec 16, 2012 5:30 pm

Second version with improvement

Code: Select all
ECHO OFF
CLS
color 0d
:MENU
ECHO.
ECHO.  --------------------------------------------------------
ECHO.   ......................................................
ECHO.      PRESS 1, 2 or 3 to select your task, or 4 to EXIT. 
ECHO.   ......................................................
ECHO.
ECHO.      1 - To RESTART DvbLink Service                     
ECHO.      2 - To START DvbLink Service                       
ECHO.      3 - To STOP DvbLink Service                         
ECHO       4 - EXIT                                           
ECHO.  --------------------------------------------------------
ECHO.
SET /P M=Type 1, 2, 3 or 4, then press ENTER:
IF %M%==1 GOTO RESTART
IF %M%==2 GOTO START
IF %M%==3 GOTO STOP
IF %M%==4 GOTO EOF
:RESTART
color 0a
net stop dvblink_server
net start dvblink_server
GOTO MENU
:START
color 0b
echo Starting service...
net start dvblink_server
GOTO MENU
:STOP
color 0d
echo Stoping service...
net stop dvblink_server
GOTO MENU
:EOF
ECHO Happy using till next time


NEW features
option to restart, stop and start service by menu
solution for admin request is shortcut with admin check enabled

still need some extras ;)
Terratec Cinergy S2 USB HD rev.1
clients ubuntu 12.04 + XBMC PVR by Pulse-Eight and Xtreamer MK1 both via WiFi
Saentist
 
Posts: 86
Joined: Thu May 10, 2012 12:01 pm
Location: Sofia / Rome


Return to Development corner

Who is online

Users browsing this forum: No registered users and 1 guest