bash-4.2$ runwin32 sc.exe
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
(以下省略)
bash-4.2$
bash-4.2$
bash-4.2$ runwin32 sc getkeyname telnet
[SC] GetServiceKeyName SUCCESS Name = TlntSvr
bash-4.2$
bash-4.2$
bash-4.2$ runwin32 sc query tlntsvr
SERVICE_NAME: tlntsvr
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
bash-4.2$
bash-4.2$
bash-4.2$ runwin32 sc config tlntsvr start= disabled
[SC] ChangeServiceConfig SUCCESS
bash-4.2$
bash-4.2$
bash-4.2$ runwin32 sc stop tlntsvr
SERVICE_NAME: tlntsvr
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
bash-4.2$
bash-4.2$
bash-4.2$ runwin32 sc query tlntsvr
SERVICE_NAME: tlntsvr
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0 |