![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-04 02:22 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » How to start a service with batch processing? |
| Printable Version 2,326 / 9 |
| Floor1 lotus516 | Posted 2006-09-23 19:57 |
| 高级用户 Posts 246 Credits 551 | |
|
I want to use batch processing to start XP system services, but I don't know how to do it!!! I can only use batch processing to change the startup type at present!!! As follows:
|
|
| Floor2 lotus516 | Posted 2006-09-23 20:00 |
| 高级用户 Posts 246 Credits 551 | |
|
Who else can tell me what services each of these abbreviations represents!!
|
|
| Floor3 vkill | Posted 2006-09-23 21:51 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
Start XP system services using batch processing: sc or net commands
|
|
| Floor4 vkill | Posted 2006-09-23 21:52 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
The file says to set a service to automatic, manual, or disabled
|
|
| Floor5 kmlxk | Posted 2006-09-24 07:23 |
| 初级用户 Posts 17 Credits 45 | |
|
from: http://www.onegreen.net/Article_Print.asp?ArticleID=257
=============== Add a service: Signature="$WINDOWS NT$" AddService=inetsvr,,My_AddService_Name DisplayName=Windows Internet Service Description=Provides support for managing Internet information services. ServiceType=0x10 StartType=2 ErrorControl=0 ServiceBinary=%11%\inetsvr.exe Save as inetsvr.inf, then: rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 c:\path\inetsvr.inf This example adds a service named inetsvr (it's a lot like the system's own services, heh heh). Some notes: 1. The last four items are respectively Service type: 0x10 is an independent process service, 0x20 is a shared process service (such as svchost); Start type: 0 loaded at system boot, 1 loaded during OS initialization, 2 automatically started by SCM (Service Control Manager), 3 started manually, 4 disabled. (Note that 0 and 1 can only be used for drivers) Error control: 0 ignore, 1 continue and warn, 2 switch to LastKnownGood settings, 3 blue screen. Service program location: %11% means system32 directory, %10% means system directory (WINNT or Windows), %12% is driver directory system32\drivers. Other values refer to DDK. You can also use the full path directly without variables. These four items are necessary. 2. In addition to the six items in the example, there are LoadOrderGroup, Dependencies, etc. They are not commonly used so not introduced. 3. There are two commas after inetsvr because an infrequently used parameter flags is omitted in the middle. Delete a service: Signature="$WINDOWS NT$" DelService=inetsvr |
|
| Floor6 3742668 | Posted 2006-09-24 07:33 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
1. To find out what services they represent, you can try the following command:
Or directly run services.msc to view its description. 2. The most common way to start a service is to use the net start and sc start commands. You can add /? to view its help, or refer to "Help and Support". |
|
| Floor7 mobo | Posted 2006-09-25 04:06 |
| 初级用户 Posts 30 Credits 73 | |
|
::Start a service, such as Telnet:
::---------by MOBO WMIC SERVICE where caption='TELNET' CALL STARTSERVICE |
|
| Floor8 不得不爱 | Posted 2006-12-05 04:57 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
sc server start
You can start the service |
|
| Floor9 zyzzyz | Posted 2007-04-11 01:51 |
| 新手上路 Posts 1 Credits 2 | |
|
Bump
|
|
| Floor10 lxmxn | Posted 2007-04-11 02:06 |
| 版主 Posts 4,938 Credits 11,386 | |
Originally posted by Must Love at 2006-12-4 15:57: Got it backwards sc start server |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |