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-06-20 17:50
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to make an exe or com file View 23,932 Replies 62
Original Poster Posted 2006-01-26 13:12 ·  中国 广东 佛山 顺德区 中移铁通
新手上路
Credits 6
Posts 1
Joined 2006-01-26 13:06
20-year member
UID 49541
Status Offline
I want to make a few simple DOS commands, such as
regsvr32 c\:windwons\system\xx.ocx
into an EXE or COM executable file, so that users don't need to type these statements, just click the EXE or COM file and it will execute automatically. I hope all you brothers can help me! Urgent

Also, put an xx.ocx file in the same directory as the above EXE or COM, and use the copy command to copy it to c:\windows\system. How to write the statement??? It's better to use a relative path. Please help everyone, thank you
Floor 2 Posted 2006-01-26 18:06 ·  中国 北京 昌平区 联通
高级用户
★★
Credits 506
Posts 187
Joined 2005-12-04 22:41
20-year member
UID 46500
Gender Male
Status Offline
There is a tool that can convert batch files into COM files. Please look for it online.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
12345 +1 2008-10-07 17:58
Floor 3 Posted 2006-01-26 19:51 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Recent Ratings for This Post ( 3 in total) Click for details
RaterScoreTime
AlexZhang +2 2007-09-24 10:47
lbdoslmzh +1 2008-10-22 12:21
+1 2010-04-21 10:33
Attachments
BAT2COM.rar (5.36 KiB, Credits to download 1 pts, Downloads: 1696)
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 4 Posted 2006-01-30 15:10 ·  中国 江苏 连云港 电信
中级用户
★★
传说中的菜鸟
Credits 275
Posts 112
Joined 2005-04-22 00:00
21-year member
UID 38486
Gender Male
Status Offline
Come in to learn, received.
Floor 5 Posted 2006-04-08 17:40 ·  中国 澳门 澳门电讯
初级用户
Credits 135
Posts 18
Joined 2004-01-07 00:00
22-year member
UID 15052
Gender Male
Status Offline
Received a good thing, thank you!!
Floor 6 Posted 2006-04-08 18:52 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
You can also make an installation version with INSTALLSHIELD.
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 7 Posted 2006-04-09 09:02 ·  中国 北京 顺义区 联通
银牌会员
★★★
DOS联盟捡破烂的
Credits 1,144
Posts 425
Joined 2005-10-20 00:00
20-year member
UID 43784
From 北京
Status Offline
There seems to be one in my USB flash drive, called something like a batch processing conversion tool. The address: http://bagpipe.ys168.com Brother JonePeng's is also a good tool. Since I came to the DOS Union, I've realized there are really so many things to learn!!!!!
Floor 8 Posted 2006-04-22 12:21 ·  中国 香港 环球全域电讯
初级用户
★★
Credits 121
Posts 61
Joined 2006-04-18 00:09
20-year member
UID 54007
Gender Male
From HK
Status Offline
Can you make a bat file? Because.com and.exe sometimes have poor support in the Windows system...
Floor 9 Posted 2006-04-24 06:13 ·  中国 河南 郑州 电信
中级用户
Credits 207
Posts 41
Joined 2004-10-24 00:00
21-year member
UID 32885
Gender Male
Status Offline
Let me see, thank you. I've been looking for it all the time. But before, I only used to convert to COM, and I haven't seen converting to EXE yet, haha. I've saved it. Got it
Floor 10 Posted 2006-07-06 09:38 ·  中国 辽宁 抚顺 电信
银牌会员
★★★
Credits 1,186
Posts 510
Joined 2004-07-30 00:00
21-year member
UID 29279
Gender Male
Status Offline
It's in the "Qibu DOS" website.
Floor 11 Posted 2006-07-17 22:29 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
exescript 这个应该不错的.可以一试的

Exescript this should be pretty good. Can give it a try
Floor 12 Posted 2006-07-18 14:35 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 46
Posts 13
Joined 2006-06-30 10:16
19-year member
UID 57780
Gender Female
Status Offline
Elders have taught me not to be stingy with saying "thank you"
Thank you!
Floor 13 Posted 2006-09-04 00:02 ·  中国 广西 南宁 联通
高级用户
★★
Credits 721
Posts 195
Joined 2004-01-15 00:00
22-year member
UID 15554
Gender Male
Status Offline
Aren't you trying to make a Trojan horse?````````````````
Floor 14 Posted 2006-09-13 16:39 ·  中国 广东 佛山 电信
初级用户
Credits 30
Posts 13
Joined 2005-10-11 00:37
20-year member
UID 43336
Status Offline
Create a new text file, enter your commands, save it, and rename it to a bat file (with the extension .bat. Note to set to show file extensions in Folder Options). If you must convert it to exe or com, use the bat2exe tool.

copy *.bat %windir%\system
copy *.ocx %windir%\system
The above two files are your bat file and ocx file.
Floor 15 Posted 2006-12-23 13:31 ·  中国 北京 中移铁通
新手上路
Credits 6
Posts 3
Joined 2006-12-22 09:36
19-year member
UID 74265
Gender Male
Status Offline
I'll also give it a try. Whether it works well or not, I'm not completely ignorant. But thanks in advance. Wish everyone a Merry Christmas!
1 2 3 5 Next ›
Forum Jump: