![]() |
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-09-15 13:29 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| 其它操作系统综合讨论区 » In Windows XP, if you have added some commands in autoexec.bat, to make it run automatically at startup, you just need to ensure that the autoexec.bat file is placed in the correct system directory and the relevant configuration allows it to be executed at startup. The autoexec.bat file is usually processed during the system boot process if it is in the root directory of the system partition (usually C:\) and the system is configured to read it. |
| Printable Version 7,984 / 13 |
| Floor1 hunat | Posted 2005-10-06 15:45 |
| 新手上路 Posts 3 Credits 9 | |
|
I put the programs that need to run at startup in autoexec.bat, but there is no response when XP starts. Where should I make changes? I'm sorry, I'm a newbie. Please give me some advice!!!
|
|
| Floor2 不得不爱 | Posted 2005-10-06 16:30 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
xp starts without running autoexec.bat!win2000 runs autoexec.bat
|
|
| Floor3 hunat | Posted 2005-10-06 16:41 |
| 新手上路 Posts 3 Credits 9 | |
|
Is there a way to make XP run autoexec.bat at startup?
|
|
| Floor4 caisy | Posted 2005-10-06 17:36 |
| 初级用户 Posts 14 Credits 38 | |
|
Just put autoexec.bat directly in the startup of XP. Hehe..
|
|
| Floor5 GOTOmsdos | Posted 2005-10-06 17:46 |
| 铂金会员 Posts 1,827 Credits 5,154 | |
|
In the XP windows\system32\ has AUTOEXEC.NT, but it doesn't seem to run automatically at boot. However, it runs automatically when running 16-bit DOS programs.
|
|
| Floor6 hunat | Posted 2005-10-06 18:26 |
| 新手上路 Posts 3 Credits 9 | |
|
Oh, is that so? Thanks
|
|
| Floor7 JonePeng | Posted 2005-10-06 21:50 |
| 金牌会员 Posts 1,883 Credits 4,562 From 广东广州 | |
|
Starting from Windows 2000, subsequent systems ignore the Autoexec.bat in the system root directory. To make the system automatically execute a batch file, you can place it in the "Startup" item in the Start menu. If you want the batch file to run in hidden mode, you can create its shortcut and then modify the running method, or make a VBS script program.
|
|
| Floor8 willsort | Posted 2005-10-06 23:10 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re JonePeng & others:
Regarding the handling of autoexec.bat by NT series, there has been a discussion in the following post: http://www.cn-dos.net/forum/viewthread.php?tid=17107#pid100219 |
|
| Floor9 220110 | Posted 2005-12-11 10:56 |
| 荣誉版主 Posts 313 Credits 718 | |
Originally posted by willsort at 2005-10-6 23:10: Re willsort: When will your self-enclosed training plan end? Come out and get some fresh air!! I have read the post you provided above three times, but it doesn't seem to have a complete explanation of the reasons for the failure of autoexec.bat/autoexec.nt startup under NT-based environments like 2000/XP/2003? I guess what more people want to know is how to control the startup of the system in the NT environment through autoexec.nt, such as setting passwords or interference items in autoexec.nt to prevent the system from completing the loading. If JONGPENG's method is used to add a batch file in the "Startup" item, the system has already been started by then. |
|
| Floor10 willsort | Posted 2005-12-29 15:24 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re 220110:
I'm very sorry that I've neglected this thread for a long time. Also, my closed training is intermittent, not meaning to be isolated from the world. Regarding config/autoexec, the information mentioned in the link is relatively scattered. Now I'll sort it out. In NT series operating systems such as 2000/XP/2003, the boot process basically doesn't rely on the two files config.sys / autoexec.bat. Among them, config.sys is completely no longer used. For autoexec.bat, only when the ParseAutoexec value in the registry (see the quote) is 1 (the default is this value), will it analyze the environment variable setting statements such as set / path in it, and other statements will be ignored in any case. config.nt / autoexec.nt are the default configuration files for the command line environment of the NT series. They have nothing to do with the system boot process. The command line window opened by entering command in Run uses these two files for environment configuration. If you intend to set passwords or interference items before the NT series system is loaded, using autoexec.bat or autoexec.nt can't be done. Maybe only using special boot management software or customizing a special ntloader can be done. I don't have the technology and experience in this regard.
|
|
| Floor11 vptdosme | Posted 2005-12-29 16:30 |
| 初级用户 Posts 32 Credits 97 | |
|
Isn't it just solving it by directly modifying the registry???
|
|
| Floor12 220110 | Posted 2005-12-30 12:49 |
| 荣誉版主 Posts 313 Credits 718 | |
| Floor13 electronixtar | Posted 2006-01-07 13:54 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Is it related to "boot script"?
|
|
| Floor14 Billunique | Posted 2007-03-30 06:29 |
| 中级用户 Posts 112 Credits 259 | |
|
Willsort is really my mentor!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |