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 10:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » What can compress a batch file without affecting execution View 7,086 Replies 18
Original Poster Posted 2003-05-12 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 180
Posts 25
Joined 2003-05-08 00:00
23-year member
UID 1939
Gender Male
Status Offline
I wanted to ask whether there is any software that can compress a batch file, and after compression the batch file can still run normally at startup. Thanks!
Floor 2 Posted 2003-05-12 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Are you making an "extra-long" batch command???
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-05-12 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 180
Posts 25
Joined 2003-05-08 00:00
23-year member
UID 1939
Gender Male
Status Offline
Sorry, I wrote it wrong! I mean encrypting a batch file, and after encryption it can still run normally at startup.
Floor 4 Posted 2003-05-12 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Encrypt a batch file? Use password-compressed ARJ/ZIP/RAR or something like that.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-05-13 00:00 ·  中国 广西 贵港 电信
高级用户
★★★
Credits 915
Posts 309
Joined 2002-12-22 00:00
23-year member
UID 567
Gender Male
Status Offline
Use BAT2EXE, but it doesn't support WBAT


Floor 6 Posted 2003-05-13 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
There does seem to be such a piece of software, but I haven't used it.
Actually encrypting a BAT file is not very useful. People who don't know how to read it naturally won't understand it. People who do know how to read it can still guess eight or nine tenths of it even without looking at the BAT.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 7 Posted 2003-05-13 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 180
Posts 25
Joined 2003-05-08 00:00
23-year member
UID 1939
Gender Male
Status Offline
With the methods you mentioned, after compressing it or converting it to an EXE file, can it still run after startup? It's the kind with multiple configurations.
Floor 8 Posted 2003-05-14 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
If it's autoexec.bat, this method won't work.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 9 Posted 2003-05-14 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The following is quoted from 如是大师 on 2003-5-14 0:58:07:
If it's autoexec.bat, this method won't work.


It might work if you unpack the AUTOEXEC.BAT file from CONFIG.SYS.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 10 Posted 2003-05-14 00:00 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
Isn't it very simple! First turn your original AUTOEXEC.BAT file into a ***.exe file
then write a new AUTOEXEC.BAT file
and load that ***.exe file in it, wouldn't that do it!
Floor 11 Posted 2003-05-14 00:00 ·  中国 香港
初级用户
Credits 181
Posts 26
Joined 2003-05-08 00:00
23-year member
UID 1945
Gender Male
Status Offline
Brilliant
Floor 12 Posted 2003-05-14 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 180
Posts 25
Joined 2003-05-08 00:00
23-year member
UID 1939
Gender Male
Status Offline
No, it doesn't work. I tried it. First convert it to EXE, then write it into a new AUTOEXEC。BAT. It simply won't work. I think if the batch file were not the multi-configuration kind, it might work. Is there really no such software? Like how EXE and SYS files can still run after being compressed.
Floor 13 Posted 2003-05-14 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
For MS-DOS 7.x, the startup file name does not necessarily have to be AUTOEXEC.BAT; AUTOEXEC.EXE or AUTOEXEC.COM will also do, and if there is an AUTOEXEC.COM/EXE, then AUTOEXEC.BAT will not be executed. So just put in an AUTOEXEC.COM/EXE.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 14 Posted 2003-05-15 00:00 ·  中国 山东 泰安 联通
初级用户
Credits 108
Posts 2
Joined 2003-05-15 00:00
23-year member
UID 2103
Gender Female
Status Offline
You can modify the command file! To change the execution.
Floor 15 Posted 2003-05-15 00:00 ·  中国 浙江 绍兴 电信
初级用户
Credits 180
Posts 25
Joined 2003-05-08 00:00
23-year member
UID 1939
Gender Male
Status Offline
What the moderator said is not right. I put AUTOEXEC。COM into the boot disk. But at startup, AUTOEXEC。COM simply does not execute. Only CONFIG。SYS was executed! If COMMAND can be modified, then how do I modify it? Thanks!
Forum Jump: