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!
StickyI
View 89,115 Replies 80
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
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!
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.
Syntax and function of STRINGS
http://www.cn-dos.net/forum/viewthread.php?tid=14350
Related Posts:
http://www.cn-dos.net/forum/viewthread.php?tid=37543#pid256993
Related posts:
http://www.cn-dos.net/forum/viewthread.php?tid=42579#pid295850
http://www.cn-dos.net/forum/viewthread.php?tid=42578
Related posts
http://www.cn-dos.net/forum/viewthread.php?tid=30573
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