![]() |
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-09-23 13:03 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » What can compress a batch file without affecting execution |
| Printable Version 7,596 / 18 |
| Floor1 sunz007 | Posted 2003-05-12 00:00 |
| 初级用户 Posts 25 Credits 180 | |
|
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!
|
|
| Floor2 如是大师 | Posted 2003-05-12 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
Are you making an "extra-long" batch command???
|
|
| Floor3 sunz007 | Posted 2003-05-12 00:00 |
| 初级用户 Posts 25 Credits 180 | |
|
Sorry, I wrote it wrong! I mean encrypting a batch file, and after encryption it can still run normally at startup.
|
|
| Floor4 Wengier | Posted 2003-05-12 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Encrypt a batch file? Use password-compressed ARJ/ZIP/RAR or something like that.
|
|
| Floor5 LK | Posted 2003-05-13 00:00 |
| 高级用户 Posts 309 Credits 915 | |
|
Use BAT2EXE, but it doesn't support WBAT
|
|
| Floor6 MYS | Posted 2003-05-13 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
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. |
|
| Floor7 sunz007 | Posted 2003-05-13 00:00 |
| 初级用户 Posts 25 Credits 180 | |
|
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.
|
|
| Floor8 如是大师 | Posted 2003-05-14 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
If it's autoexec.bat, this method won't work.
|
|
| Floor9 Wengier | Posted 2003-05-14 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from 如是大师 on 2003-5-14 0:58:07: It might work if you unpack the AUTOEXEC.BAT file from CONFIG.SYS. |
|
| Floor10 沈洁 | Posted 2003-05-14 00:00 |
| 金牌会员 Posts 1,812 Credits 4,590 From 上海市 | |
|
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! |
|
| Floor11 dewin | Posted 2003-05-14 00:00 |
| 初级用户 Posts 26 Credits 181 | |
|
Brilliant
|
|
| Floor12 sunz007 | Posted 2003-05-14 00:00 |
| 初级用户 Posts 25 Credits 180 | |
|
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.
|
|
| Floor13 Wengier | Posted 2003-05-14 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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.
|
|
| Floor14 阿媚 | Posted 2003-05-15 00:00 |
| 初级用户 Posts 2 Credits 108 | |
|
You can modify the command file! To change the execution.
|
|
| Floor15 sunz007 | Posted 2003-05-15 00:00 |
| 初级用户 Posts 25 Credits 180 | |
|
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!
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |