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-04 19:41
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to automatically run an .exe file at startup View 2,768 Replies 9
Original Poster Posted 2007-06-03 22:06 ·  中国 广东 广州 天河区 电信
新手上路
Credits 16
Posts 6
Joined 2007-06-03 19:09
19-year member
UID 90166
Gender Male
Status Offline
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.
Floor 2 Posted 2007-06-03 22:19 ·  中国 浙江 杭州 华数宽带
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
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
Floor 3 Posted 2007-06-03 22:29 ·  中国 广东 广州 天河区 电信
新手上路
Credits 16
Posts 6
Joined 2007-06-03 19:09
19-year member
UID 90166
Gender Male
Status Offline
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.
Floor 4 Posted 2007-06-03 22:38 ·  中国 广东 东莞 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
学无尽止
Floor 5 Posted 2007-06-03 22:41 ·  中国 广东 广州 天河区 电信
新手上路
Credits 16
Posts 6
Joined 2007-06-03 19:09
19-year member
UID 90166
Gender Male
Status Offline
If it's written out completely, is it like this:

echo@

start 123.exe

echo@
Floor 6 Posted 2007-06-03 22:43 ·  中国 广东 广州 天河区 电信
新手上路
Credits 16
Posts 6
Joined 2007-06-03 19:09
19-year member
UID 90166
Gender Male
Status Offline
Still just write: start 123.exe ?????
Floor 7 Posted 2007-06-03 23:40 ·  中国 广东 佛山 电信
高级用户
★★
我思故我在
Credits 512
Posts 228
Joined 2007-01-21 10:31
19-year member
UID 77225
Gender Male
Status Offline
我确实是只菜鸟,而且这里X人太多,所以我不敢装X。谁要再说我装X,我就XXOO他。
Floor 8 Posted 2007-06-03 23:43 ·  中国 广东 广州 天河区 电信
新手上路
Credits 16
Posts 6
Joined 2007-06-03 19:09
19-year member
UID 90166
Gender Male
Status Offline
Floor 9 Posted 2007-06-04 09:20 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
It's exe is still started with the boot script under system.

[ Last edited by qingfushuan on 2007-6-4 at 09:22 AM ]
Floor 10 Posted 2007-06-04 10:49 ·  中国 重庆 长寿区 电信
初级用户
Credits 101
Posts 47
Joined 2007-04-18 16:05
19-year member
UID 85634
Gender Male
Status Offline
Add a string value under HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun in the registry, name it arbitrarily, and set the value to point to your EXE.
Forum Jump: