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-06 02:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about autoexec.bat? View 736 Replies 6
Original Poster Posted 2007-10-08 18:21 ·  中国 广西 百色 电信
中级用户
★★
Credits 265
Posts 92
Joined 2006-11-29 23:08
19-year member
UID 72114
Gender Male
From 广西
Status Offline
When the computer starts up, does it run c:\windows\autoexec.bat (the one that comes with the system)? If anyone knows, please help. Thanks!!
Floor 2 Posted 2007-10-08 20:30 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
No, there is no autoexec.bat file at all in the windows directory.
Floor 3 Posted 2007-10-08 22:18 ·  中国 北京 联通
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
W9X/me still has it...
The WNT series doesn't have it at all..
Floor 4 Posted 2007-10-09 10:11 ·  中国 广西 百色 电信
中级用户
★★
Credits 265
Posts 92
Joined 2006-11-29 23:08
19-year member
UID 72114
Gender Male
From 广西
Status Offline
Then if we create autoexec.bat ourselves?? Will that work? How do we run it??
Floor 5 Posted 2007-10-09 10:28 ·  中国 山西 太原 联通
初级用户
Credits 55
Posts 17
Joined 2007-08-28 15:43
18-year member
UID 96031
Gender Male
Status Offline
Current computers do have it, at least XP does. The commands in it will be executed when the system starts, but its location is C:\autoexec.bat, not the location you mentioned. What system are you using?
Floor 6 Posted 2007-10-09 10:51 ·  中国 广西 百色 电信
中级用户
★★
Credits 265
Posts 92
Joined 2006-11-29 23:08
19-year member
UID 72114
Gender Male
From 广西
Status Offline
Mine is Microsoft Windows XP [Version 5.1.2600]!
Floor 7 Posted 2007-10-09 11:07 ·  中国 香港 腾讯云
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
There is automatic running of the autoexec file.

If you want XP not to run it automatically, go to the HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon branch, double-click the "ParseAutoexec" string value item in the right pane (if it isn't there, create one), change its "Value data" from the default "1" to "0", then exit the registry, and Windows XP will skip Autoexec.bat at startup.
Forum Jump: