China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 11:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » About the command to start a service using net start View 2,509 Replies 7
Original Poster Posted 2006-10-30 23:44 ·  中国 浙江 台州 电信
初级用户
Credits 54
Posts 18
Joined 2006-08-26 13:12
19-year member
UID 61314
Status Offline
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 ]
Floor 2 Posted 2006-10-31 00:09 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-10-31 02:41 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 4 Posted 2006-11-01 00:23 ·  中国 浙江 台州 电信
初级用户
Credits 54
Posts 18
Joined 2006-08-26 13:12
19-year member
UID 61314
Status Offline
Thank you two. Can the person on the second floor be more detailed?
Floor 5 Posted 2006-11-01 01:06 ·  中国 北京 东城区 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
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.


reg.exe query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"


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:

C:\windows\system32>dir servi*.msc
……
Directory of C:\windows\system32

2003-03-27 20:00 33,466 services.msc
1 File(s) 33,466 bytes
0 Dir(s) 575,143,936 bytes free



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 ]
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 6 Posted 2006-11-02 12:08 ·  中国 广东 惠州 电信
新手上路
Credits 18
Posts 8
Joined 2006-11-01 12:52
19-year member
UID 69162
Gender Male
Status Offline
What command is used in CMD mode?
Floor 7 Posted 2006-11-02 12:12 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
The above are the commands under CMD.
Floor 8 Posted 2006-11-16 12:53 ·  中国 广西 柳州 鱼峰区 电信
高级用户
★★★
Credits 915
Posts 309
Joined 2002-12-22 00:00
23-year member
UID 567
Gender Male
Status Offline
@echo off
@pause
sc config ALG start= AUTO
Forum Jump: