![]() |
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-23 16:43 |
47,812 topics / 349,917 posts / today 0 new / 48,274 members |
| DOS批处理 & 脚本技术(批处理室) » Newbie Help: About running a batch file at startup |
| Printable Version 1,547 / 1 |
| Floor1 njuboy | Posted 2006-05-11 23:42 |
| 新手上路 Posts 1 Credits 6 | |
|
I wrote a batch file because I needed it.
I added it to the Windows Startup group, but every time the system starts and the batch file launches automatically, a black cmd box pops up. Question for all the experts: how can I make the batch file start automatically at boot in the background or run hidden, so the command-line black box disappears? Urgent~~~ |
|
| Floor2 3742668 | Posted 2006-05-11 23:59 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
1, Call it with vbs; you can refer to this thread
2, Run the bat before the system loads explorer; you can modify the registry: After modifying the above registry, not only can it not be seen in msconfig, it also cannot be seen with wmic startup. Only by using can it be viewed from the command line. Method 2 was tested under SP1; I haven't tested it in a long time. Of course, you can also try putting the startup file in the All Users Startup folder and see. I guess it should be before loading personal settings. (untested) |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |