中国DOS联盟论坛

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-02 12:54
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » About the command to start a service using net start
Printable Version  2,510 / 7
Floor1 yefenghome Posted 2006-10-30 23:44
初级用户 Posts 18 Credits 54
net start can start a service, but if the service was originally disabled, this command cannot start it.

Is there any method for this by any expert?

[ Last edited by yefenghome on 2006-10-31 at 08:30 PM ]
Floor2 electronixtar Posted 2006-10-31 00:09
铂金会员 Posts 2,672 Credits 7,493
Floor3 不得不爱 Posted 2006-10-31 02:41
超级版主 Posts 2,044 Credits 5,310 From 四川南充
regedit4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\服务名]
"Start"=dword:00000003
Floor4 yefenghome Posted 2006-11-01 00:23
初级用户 Posts 18 Credits 54
Thank you two. Can the person on the second floor be more detailed?
Floor5 redtek Posted 2006-11-01 01:06
金牌会员 Posts 1,147 Credits 2,902
Reg.exe can be used to view and modify the registry.
Reg.exe /? can get its help information. How can you be familiar with operating the registry if you don't read this help information for operating the registry?

The following is using REG.EXE to read all the information about services in the registry. In these information, you can further confirm and find the services you want.



The relevant commands about operating the registry and starting services (operations on services) given by the moderator and electronixtar to you.
But these commands also need to use /? to view their help information (you can't memorize them, you can check them when using them).
So, it is suggested that yefenghome first view the help information of the commands given by the moderator and electronixtar brother. Then operate.
Only in this way can you start the road to proficiency...

At the same time, open your "Services" window and see which services are enabled on your current computer :)
If you can't find how to start the services in the Start menu, you can find it using the following principle:



After finding it, look at the services inside, and then start your Regedit.exe to view the program of the registry,
and at the same time in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Compare one by one: the status of various values after you enable, disable and disable the services.
Also use reg.exe to compare these statuses...

In this way, you can fully understand the relationship between them,
At the same time, Sc.exe can further operate (how to operate? /? or see the help, can't memorize, check when using).
After reading all the help of these commands, simply operating all of them, and comparing the services with the registry,
You will start the road to proficiency ~ :)

The moderator upstairs has already done many steps for you :)
In the future, when you want to operate other registries or achieve a certain requirement, you still operate according to the above principle :)

[ Last edited by redtek on 2006-11-1 at 01:10 AM ]
Floor6 ccht Posted 2006-11-02 12:08
新手上路 Posts 8 Credits 18
What command is used in CMD mode?
Floor7 lxmxn Posted 2006-11-02 12:12
版主 Posts 4,938 Credits 11,386
The above are the commands under CMD.
Floor8 LK Posted 2006-11-16 12:53
高级用户 Posts 309 Credits 915
@echo off
@pause
sc config ALG start= AUTO
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023