中国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-04 20:38
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » How to automatically run an .exe file at startup
Printable Version  2,770 / 9
Floor1 yuanzidan Posted 2007-06-03 22:06
新手上路 Posts 6 Credits 16
I have a program path: C:\windows\system32\123.exe
I want it to run automatically as soon as the computer boots. How to write the autoexec.bat file? I want detailed commands.
Floor2 bjsh Posted 2007-06-03 22:19
银牌会员 Posts 621 Credits 2,000
Directly put it into the startup;
Or put a batch file in
C:\Documents and Settings\bluesky\「Start」Menu\Programs\Startup
to execute the program you specified
Floor3 yuanzidan Posted 2007-06-03 22:29
新手上路 Posts 6 Credits 16
Well, the moderator is right..
But my purpose is to use autoexec.bat to achieve, can you help me?
I'm a newbie, please be detailed.
Floor4 chainliq Posted 2007-06-03 22:38
高级用户 Posts 244 Credits 635 From 广西贵港
Floor5 yuanzidan Posted 2007-06-03 22:41
新手上路 Posts 6 Credits 16
If it's written out completely, is it like this:

echo@

start 123.exe

echo@
Floor6 yuanzidan Posted 2007-06-03 22:43
新手上路 Posts 6 Credits 16
Still just write: start 123.exe ?????
Floor7 qinbuer Posted 2007-06-03 23:40
高级用户 Posts 228 Credits 512
Floor8 yuanzidan Posted 2007-06-03 23:43
新手上路 Posts 6 Credits 16
Floor9 qingfushuan Posted 2007-06-04 09:20
高级用户 Posts 327 Credits 502
It's exe is still started with the boot script under system.

[ Last edited by qingfushuan on 2007-6-4 at 09:22 AM ]
Floor10 chkau Posted 2007-06-04 10:49
初级用户 Posts 47 Credits 101
Add a string value under HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun in the registry, name it arbitrarily, and set the value to point to your EXE.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023