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-01 12:15
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to write a batch file into an .EXE file? View 4,337 Replies 22
Original Poster Posted 2004-02-23 00:00 ·  中国 广东 中山 电信
初级用户
Credits 185
Posts 21
Joined 2004-01-31 00:00
22-year member
UID 16425
Gender Male
Status Offline
I have seen such a file. In GHOST, there are no batch files at all. All are in a.CAB compressed package. And the files in the compressed package are all.4EXE. What's going on? Could it be that batch files can also be written as.EXE?
Floor 2 Posted 2004-02-24 00:00 ·  中国 云南 红河哈尼族彝族自治州 弥勒市 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
23-year member
UID 6296
Gender Male
Status Offline
Download a batlite to convert bat to com
Floor 3 Posted 2004-02-25 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
The batch file compilation tool I modified: Open attachment
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 4 Posted 2004-02-25 00:00 ·  中国 广东 广州 天河区 电信
初级用户
Credits 110
Posts 2
Joined 2004-02-25 00:00
22-year member
UID 18406
Gender Male
Status Offline
Floor 5 Posted 2004-02-25 00:00 ·  中国 广东 广州 天河区 电信
初级用户
Credits 110
Posts 2
Joined 2004-02-25 00:00
22-year member
UID 18406
Gender Male
Status Offline
Floor 6 Posted 2004-02-26 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Note that the batch compilation program I uploaded can only be executed in command line mode. Running without parameters will display help information.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 7 Posted 2004-02-26 00:00 ·  中国 广东 中山 电信
初级用户
Credits 185
Posts 21
Joined 2004-01-31 00:00
22-year member
UID 16425
Gender Male
Status Offline
I downloaded such a tool. But I don't know how to use it! Please ask an expert for guidance. Or give a data address is also okay!
Floor 8 Posted 2004-02-26 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
Program followed by your Bat file

一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 9 Posted 2004-02-27 00:00 ·  中国 广东 中山 电信
初级用户
Credits 185
Posts 21
Joined 2004-01-31 00:00
22-year member
UID 16425
Gender Male
Status Offline
For example, my conversion program is on drive H. The batch file is on drive G. Should it be written like this in the command prompt?

H:\BAT2EXEC.COM 1.BAT

Is that right?

So this directly converts this batch file into an executable file, right!
Floor 10 Posted 2004-02-28 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
H:\bat2exec g:\1.bat
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 11 Posted 2004-02-28 00:00 ·  中国 广东 中山 电信
初级用户
Credits 185
Posts 21
Joined 2004-01-31 00:00
22-year member
UID 16425
Gender Male
Status Offline
Thanks to this fellow for his help.

But I still want to ask. How to load and run the generated file?

Is it added to CONFIG.SYS or to AUTOEXEC.BAT?

Thanks!
Floor 12 Posted 2004-02-28 00:00 ·  中国 重庆 电信
初级用户
行者
Credits 317
Posts 47
Joined 2004-02-27 00:00
22-year member
UID 18653
Gender Male
Status Offline
It has doubled in size after conversion!
********** 自强不息,奋斗不已!!***********
QQ:56751609
E-mail: sky_walker820@eyou.com
欢迎大家和我聊啊!!
Floor 13 Posted 2004-02-29 00:00 ·  中国 河南 安阳 联通
初级用户
Credits 125
Posts 5
Joined 2004-02-29 00:00
22-year member
UID 18821
Gender Male
Status Offline
Floor 14 Posted 2004-03-01 00:00 ·  中国 广东 中山 电信
初级用户
Credits 185
Posts 21
Joined 2004-01-31 00:00
22-year member
UID 16425
Gender Male
Status Offline
Are the made files loaded in CONFIG or in AUTOEXEC?

Thanks!
Floor 15 Posted 2004-03-01 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
If you want the program to run automatically when the computer starts, add the program to the AUTOEXEC.BAT file.
Note: This method is not valid in WINDOWS 2000, WINDOWS XP, and WINDOWS 2003.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Forum Jump: