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批处理 & 脚本技术(批处理室) » Encrypt a bat batch file and write copyright information in it View 3,185 Replies 9
Original Poster Posted 2010-12-03 12:31 ·  中国 广东 深圳 电信
初级用户
★★
Credits 149
Posts 57
Joined 2006-10-26 11:39
19-year member
UID 68362
Gender Male
From 湖南
Status Offline
Create three files in the same directory: "Copyright Information.txt", "Batch.bat", and "Encryption Tool.bat".

The content of the "Copyright Information.txt" file is as follows:
@@@@@@@@@@@@
All rights reserved by Nanshan Tiger
QQ: 123456
EMail: 123456@qq.com
@@@@@@@@@@@@
Leave two or three lines blank here
Then save it again, change the encoding to Unicode, and overwrite the original "Copyright Information.txt".

The content of the "Batch.bat" file is as follows:
Leave two or three lines blank at the front
cls
net user
pause
Save.

The content of the "Encryption Tool.bat" file is as follows:
copy /a Copyright Information.txt + /b Batch.bat = Encrypted Batch.bat
Save
Run the "Encryption Tool.bat"
It will generate an "Encrypted Batch.bat"
Double-click the "Encrypted Batch.bat" to view all your usernames, and open the "Encrypted Batch.bat" with a text editor to see the copyright information and garbled characters.

Be sure to leave a few lines blank, otherwise it will go wrong.
If you don't understand, look at the example in the attachment.
Attachments
Floor 2 Posted 2010-12-03 12:37 ·  中国 广东 深圳 电信
初级用户
★★
Credits 149
Posts 57
Joined 2006-10-26 11:39
19-year member
UID 68362
Gender Male
From 湖南
Status Offline
@@@@@@@@@@@@@@@@@@@@@@@@@@
版权所有:南山猛虎
QQ:123456
电子邮箱:123456@qq.com
@@@@@@@@@@@@@@@@@@@@@@


The second part seems to be some non-English and possibly unrecognizable text, so it remains as is.
਍਍汣൳渊瑥甠敳൲瀊畡敳਍਍
Floor 3 Posted 2010-12-03 16:58 ·  中国 福建 泉州 电信
初级用户
Credits 38
Posts 38
Joined 2010-11-17 22:11
15-year member
UID 177740
Gender Male
Status Offline
Not bad, quite fun.
Floor 4 Posted 2010-12-10 07:07 ·  中国 上海 闵行区 电信
新手上路
Credits 12
Posts 12
Joined 2010-03-24 20:25
16-year member
UID 162958
Gender Male
Status Offline
It's quite dizzying! It's like magic!
Floor 5 Posted 2010-12-14 00:44 ·  中国 天津 联通
新手上路
Credits 13
Posts 11
Joined 2009-01-24 00:28
17-year member
UID 137340
Gender Male
Status Offline
Not bad. Tried it and it's pretty powerful...
Floor 6 Posted 2010-12-23 11:36 ·  中国 北京 电信
新手上路
Credits 6
Posts 6
Joined 2008-10-20 13:38
17-year member
UID 128841
Gender Male
Status Offline
Haven't been here for a long time, support the owner!
Floor 7 Posted 2010-12-23 16:35 ·  中国 广东 深圳 联通
初级用户
★★
Credits 149
Posts 57
Joined 2006-10-26 11:39
19-year member
UID 68362
Gender Male
From 湖南
Status Offline
You can enter "edit c:\123.bat" in the command prompt (assuming your batch file is c:\123.bat), then cut off the garbled characters in the first line, save it, and then view your batch file, and you can find that the commands inside are visible again.
Floor 8 Posted 2010-12-25 11:19 ·  中国 广东 东莞 中移铁通
初级用户
★★
Credits 115
Posts 92
Joined 2010-12-24 16:57
15-year member
UID 179794
Gender Male
Status Offline
Support the original poster!
Floor 9 Posted 2016-02-22 22:11 ·  中国 广东 深圳 BGP数据中心
新手上路
Credits 15
Posts 14
Joined 2016-01-30 21:45
10-year member
UID 181461
Gender Male
Status Offline
Hahahahahaha
Floor 10 Posted 2016-12-12 14:53 ·  中国 江苏 无锡 电信
新手上路
Credits 2
Posts 2
Joined 2016-10-27 13:46
9-year member
UID 181892
Gender Male
Status Offline
Interesting, good. Caesar, come and take a look
Forum Jump: