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-25 03:04
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Special Post for Collecting Attachments in Batch Processing Room [2009-02-11] StickyI View 89,115 Replies 80
Floor 31 Posted 2008-07-30 13:54 ·  中国 贵州 毕节 电信
初级用户
Credits 31
Posts 16
Joined 2008-02-27 19:52
18-year member
UID 111579
Gender Male
Status Offline
Floor 32 Posted 2008-08-28 19:38 ·  中国 四川 成都 联通
初级用户
★★
Credits 145
Posts 95
Joined 2008-04-12 16:29
18-year member
UID 115703
Gender Male
Status Offline
Floor 33 Posted 2008-09-25 16:26 ·  中国 广东 深圳 电信
初级用户
★★
Credits 185
Posts 88
Joined 2008-05-12 18:46
18-year member
UID 118511
Gender Male
Status Offline
Thanks
Floor 34 Posted 2008-09-27 15:47 ·  中国 广东 东莞 电信
初级用户
Credits 79
Posts 37
Joined 2007-04-26 12:31
19-year member
UID 86552
Gender Male
Status Offline
Thanks for providing. It's really a good thing.
Floor 35 Posted 2008-09-30 21:44 ·  中国 广东 广州 电信
新手上路
Credits 2
Posts 1
Joined 2008-09-30 21:19
17-year member
UID 127112
Gender Male
Status Offline
Floor 36 Posted 2008-10-10 07:57 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
curl.exe (7.19.0): A powerful file download tool, a file transfer tool working in command line mode using URL syntax

http://upload.cn-dos.net/img/909.zip

Related applications:

Using Curl and Task Scheduler to Create an Automatic BT Download BOT
http://www.cn-dos.net/forum/viewthread.php?tid=22258

CMD and Curl Combined: Automatically Merging Multi-page Threads
http://www.cn-dos.net/forum/viewthread.php?tid=22238


[ Last edited by HAT on 2008-10-11 at 14:24 ]
Floor 37 Posted 2008-10-10 07:57 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
MakeCAB.exe: a tool provided by Microsoft for creating CAB files
http://upload.cn-dos.net/img/920.zip

Repost:
The simplest usage:
makecab full name of the file such as makecab wmd.dll

Specify compression type and the size of memory used:
makecab /d compressiontype=lzx /d compressionmemory=21 wmd.dll high compression ratio

Batch compression method:
for %v in (*.*) do makecab %v

Before I studied for a long time, I didn't know how to use a single command to compress all files in a directory into a CAB package. Now I finally know. The way to compress into one CAB package:
makecab /f list.txt /d compressiontype=mszip /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab

Here is a high compression ratio one:
makecab /f list.txt /d compressiontype=lzx /d compressionmemory=21 /d maxdisksize=1024000000 /d diskdirectorytemplate=dd* /d cabinetnametemplate=dd*.cab

The list.txt here is the list of files. If it is a relative path, it should be placed in the folder to be compressed. If it is an absolute path, it can be placed anywhere!


[ Last edited by HAT on 2008-10-11 at 22:36 ]
Floor 38 Posted 2008-10-10 08:12 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Listdlls.exe(2.25):A tool that displays information such as the names and paths of DLL files loaded by the system
http://upload.cn-dos.net/img/910.zip
ListDLLs v2.25
By Mark Russinovich
Published: November 1, 2006

Introduction
A question that I often get asked is "Do you know of a utility that will show me which DLLs are loaded on Windows 9x or NT ". The answer I gave up until recently was "no", until I discovered a tool in the Windows NT Resource Kit called tlist that does show this information. I decided to write a free-ware version, ListDLLs. Unlike tlist, however, ListDLLs is able to show you the full path names of loaded modules - not just their base names. In addition, ListDLLs will flag loaded DLLs that have different version numbers than their corresponding on-disk files (which occurs when the file is updated after a program loads the DLL), and can tell you which DLLs were relocated because they are not loaded at their base address.

You can also get Process Explorer, a GUI-based version of this program, here at Sysinternals.

Installation
Just copy ListDLLs onto your executable path, and type "listdlls".

ListDLLs works on Windows 9x, NT 3.51, NT 4.0, and Win2K.


[ Last edited by HAT on 2008-10-11 at 22:37 ]
Floor 39 Posted 2008-10-11 23:01 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
stings.com(2.5): Text reading tool under DOS
http://www.cn-dos.net/forum/viewthread.php?tid=32906#pid220220
http://www.cn-dos.net/forum/viewthread.php?tid=35827#pid242619

Syntax and function of STRINGS
http://www.cn-dos.net/forum/viewthread.php?tid=14350


[ Last edited by HAT on 2008-11-11 at 17:48 ]
Floor 40 Posted 2008-10-11 23:01 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 41 Posted 2008-10-12 00:31 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 42 Posted 2008-10-14 11:06 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 43 Posted 2008-10-14 11:06 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
sed.exe(4.1.4): A line-based stream text processing software

http://upload.cn-dos.net/img/937.zip

Related posts
http://www.cn-dos.net/forum/viewthread.php?tid=30573


Tutorial: Twelve Lessons on Shell Basics - sed
http://www.chinaunix.net/index.php?uid=637535&url=http://bbs.chinaunix.net/viewthread.php?tid=452942

[ Last edited by HAT on 2008-11-4 at 09:41 ]
Floor 44 Posted 2008-10-19 17:19 ·  中国 江西 赣州 电信
新手上路
Credits 13
Posts 15
Joined 2008-10-19 15:37
17-year member
UID 128763
Gender Male
Status Offline
Thanks a lot. There are many very practical tools.
Floor 45 Posted 2008-10-20 20:18 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
screnc.exe(1.0): Microsoft official tool Windows Script Encoder that can encrypt VBS and other scripts
http://upload.cn-dos.net/img/1124.zip

Description
Encode the source code of the script so that it cannot be easily viewed or modified by users.

Syntax
SCRENC inputfile outputfile

The components of the script encoder syntax are as follows:

Part Description
/s Optional. Switch that specifies that the working state of the script encoder is static, that is, no screen output is generated. If omitted, the default is to provide redundant output.
/f Optional. Specify that the input file will be overwritten by the output file. Note that this option will destroy your original input source code. If omitted, the output file will not be overwritten.
/xl Optional. Specify that the @language directive is not added to the top of the.ASP file. If omitted, the @language directive is added to all.ASP files.
/l defLanguage Optional. Specify the default scripting language (JScript® or VBScript) used during encoding. The script block in the encoded file that does not contain the language attribute is considered to be written in the specified language. If omitted, JScript is the default language for HTML pages and scriptlets, and VBScript is the default language for dynamic web pages. For plain text files, the default scripting language is determined by the file extension (.js or.vbs).
/e defExtension Optional. Associate the input file with a specific file type. Use this switch when the extension of the input file does not clearly show the type of the file, that is, when the input file extension is not an identifiable extension, but the file content can be classified into an identifiable type. There is no default value for this option. If an unidentifiable extension file is encountered and this option is not specified, the script encoder cannot process the unidentifiable file. Recognizable file extensions are asa, asp, cdx, htm, html, js, sct, and vbs.
inputfile Required. The name of the file to be encoded, including any required path information relative to the current directory.
outputfile Required. The name of the output file to be generated, including any required path information relative to the current directory.

Description
The following are the four types of files that the script encoder can process:
ASP. This format consists of a text dynamic web page that contains valid HTML and embedded script blocks within <SCRIPT>... </SCRIPT> tags or <%... %> tags. Applications that use this format include Microsoft® Internet Information Services (IIS). Recognized file extensions are.asp,.asa, and.cdx.
HTML. This format consists of a text file that contains valid HTML and embedded script blocks. Applications written using this script format include Microsoft FrontPage®, Microsoft® Visual InterDev™, and all virtual web designers and browsers. Recognized file extensions are.htm and.html.
Plain text. This format consists of a text file that contains only scripts without end tags. Applications written using this script format include Windows® Scripting Host (WSH) and Microsoft® Outlook®. Recognized file extensions are.js and.vbs, and after encoding, they become.jse and.vbe respectively.
Scriptlet. This format consists of a text file that contains a valid scriptlet within <SCRIPT>... </SCRIPT> tags. Recognized file extensions are.sct and.wsh.

Example
The following is an example of using the script encoder and a simple explanation of its result:
Encode the input file test.html to generate the output file encode.html, using:

screnc test.html encode.html

Encode the input file test.htm and overwrite the input file with the encoded output file, using:
screnc /f test.htm

Encode all.ASP files in the current directory and place the encoded output files in c:\temp, using:
screnc *.asp c:\temp

Encode all.ASP files in the current directory and place the encoded output files in c:\temp, using:
screnc /e asp *.* c:\temp

Encode the input file test.htm to generate the output file encode.htm, ensuring that script blocks without a specified language attribute use VBScript, using:
screnc /l vbscript test.htm encode.htm

Encode all scriptlet files in the current directory and overwrite these files with the encoded files without information display, using:
screnc /s /f *.sct


[ Last edited by HAT on 2008-11-23 at 03:20 ]
Forum Jump: