|
insert
中级用户
  
积分 282
发帖 52
注册 2004-9-29
状态 离线
|
  『楼 主』:
STRINGS 的语法和作用,麻烦各位点评。呵呵!!
使用 LLM 解释/回答一下
上次经过Climbing的指导,终于清楚了STRINGS的强大功能。小弟手头没英文字典,所以只能借助翻译软件,总算把STRINGS的一些子命令的用法搞清楚了,具体请看下面的介绍。由于小弟不懂E文,所以有错或漏的,请各位能帮忙指出并补上。谢谢!!
STRINGS是个很好的批处理增强工具,功能很多,如字符操作,文件操作,内存操作等,并可将值输出到目标变量中。可以使用DOS提示符下输入STRINGS /?查看其所有的使用参数。
STRINGS/? (查看STRINGS的子命令列表)
下面是STRINGS的子命令列表:
LEFT RIGHT MID LENGTH FIND FINDC
LOWER UPPER CHAR VAL FILEDRIVE FILEDIR
FILENAME FILEEXT PARSE ADDCOMMAS REPEAT READ
WRITE FILESIZE LINESIZE TRUENAME FILEDATE FILETIME
VER ASK INWIN 2FCHECK ENVFREE ENVSIZE
MASTERVAR LOCALVAR TRUEVER FILES LASTDRIVE CODEPAGE
COUNTRY BIOSDATE GETKEY LOCALENV MASTERENV ADD
SUB MUL DIV AND OR XOR
NOT CONVERT PEEK POKE IN OUT
INTERRUPT SCAN DAY MONTH DATE TIME
MEMTOTAL MEMFREE XMSTOTAL XMSFREE XMSVER EMSTOTAL
EMSFREE EMSVER UMBLARGE STRINGSVER INSTALLED HELP
查看某个特定命令的帮助请输入: STRINGS HELP 子命令
例如:STRINGS HELP LEFT (将显示LEFT子命令的详细用法)
下面是它们的详细语法和作用,〈 〉内是作用说明。
1.STRINGS LEFT 源字符串 要取的字符数量 〈从左边取源字符串的指定字符数量〉
2.STRINGS RIGHT 源字符串 要取的字符数量 〈从右边取源字符串的指定字符数量〉
3.STRINGS MID 源字符串 起止数,终止数 〈从中央取源字符串〉
4.STRINGS LENGTH 源字符串 〈返回源字符串的字符长度〉 5.STRINGS FIND 源字符串 字符 〈从源字符中查找指定的字符〉
6.STRINGS FINDC 源字符串 字符 〈从源字符中查找指定的字符,区分大小写〉
7.STRINGS LOWER 源字符串 〈将源字符串中的大写字母转换成小写字母〉
8.STRINGS UPPER 源字符串 〈将源字符串中的小写字母转换成大写字母〉
9.STRINGS CHAR 字符 ... 〈将字符转换成ASCII数字〉
10、STRINGS VAL 数字 ... 〈将数字转换成ASCII字符〉
11、STRINGS FILEDRIVE 文件名 〈返回文件名所在的盘符〉
12、STRINGS FILEDIR 文件名 〈返回文件名所在的目录〉
13、STRINGS FILENAME 源文件名 〈返回源文件名的文件名,不要扩展名〉
14、STRINGS FILEEXT 源文件名 〈只返回源文件名的扩展名〉
15、STRINGS ADDCOMMAS 数字 〈将数字每隔三位用逗号隔开〉
16、STRINGS REPEAT 重复多少,字符或数字 〈将字符或数字进行指定的重复〉
17、STRINGS READ 文件名,行数 〈读取文件中指定行数的内容〉
18、STRINGS WRITE 文件名,字符 〈将字符追加到文件中〉
19、STRINGS FILESIZE 文件名 〈返回文件的大小〉
20、STRINGS LINESIZE 文件名 〈返回文件内容的总行数〉
21、STRINGS TRUENAME 文件名 〈返回文件的完整路径〉
22、STRINGS FILEDATE 文件名 〈返回文件的修改日期〉
23、STRINGS FILETIME 文件名 〈返回文件的修改时间〉
24、STRINGS VER 〈返回当前系统的DOS版本号〉
25、STRINGS ASK 提未字符串 〈对话〉
26、STRINGS INWIN 〈如果在WINDOWS中的DOS窗口中运行则返回1〉
27、STRINGS ENVFREE 〈返回环境变量空间的空闲字节数〉
28、STRINGS ENVSIZE 〈返回环境变量空间的总共大小〉
29、STRINGS TRUEVER 〈返回当前DOS的真实版本号〉
30、STRINGS FILES 〈返回当前同时访问的文件数量〉
31、STRINGS LASTDRIVE 〈返回当前系统可以访问最后有效的驱动器字母〉
32、STRINGS CODEPAGE 〈返回当前系统活动的长文件代码页〉
33、STRINGS COUNTRY 〈返回当前系统设置的国家代码〉
34、STRINGS BIOSDATE 〈返回BIOS出厂的日期〉
35、STRINGS GETKEY 〈返回按键的ASCII代码〉
36、STRINGS ADD 数字1,数字2... 〈对数字进行+运算〉
37、STRINGS SUB 数字1,数字2... 〈对数字进行-运算〉
38、STRINGS MUL 数字1,数字2... 〈对数字进行×运算〉
39、STRINGS DIV 数字1,数字2... 〈对数字进行÷运算〉
40、STRINGS AND 数字1,数字2... 〈对数字进行“逻辑与”运算〉
41、STRINGS OR 数字1,数字2... 〈对数字进行“逻辑或”运算〉
42、STRINGS NOT 数字1,数字2... 〈对数字进行“逻辑取反”运算〉
43、STRINGS MEMTOTAL 〈返回系统总共的常规内存大小〉
44、STRINGS MEMFREE 〈返回系统空闲的常规内存大小〉
45、STRINGS XMSTOTAL 〈返回系统总共的扩展内存大小〉
46、STRINGS XMSFREE 〈返回系统空闲的扩民内存大小〉
47、STRINGS XMSVER 〈返回当前扩展内存使用的驱动程序的版本号〉
48、STRINGS EMSTOTAL 〈返回系统总共的扩充内存大小〉
49、STRINGS EMSFREE 〈返回系统空闲的扩充内存大小〉
50、STRINGS EMSVER 〈返回当前扩充内存使用的驱动程序的版本号〉
51、STRINGS STRINGSVER 〈返回STRINGS的版本号〉
以下是小弟还没弄懂的子命令,麻烦那位知道其作用的请补上。谢谢!!
PARSE 2FCHECK MASTERVAR LOCALVAR LOCALENV MASTERENV XOR
CONVERT PEEK POKE IN OUT INTERRUPT SCAN
DAY MONTH DATE TIME UMBLARGE INSTALLED
再次感谢 Climbing ! 各位喜欢要顶哦!!! 呵呵!!!
Last time, with the guidance of Climbing, I finally understood the powerful functions of STRINGS. I don't have an English dictionary at hand, so I can only rely on translation software to finally figure out the usage of some sub - commands of STRINGS. Please see the following introduction specifically. Since I don't understand English, if there are any errors or omissions, please help point them out and supplement them. Thank you!!
STRINGS is a very good batch processing enhancement tool. It has many functions, such as character operations, file operations, memory operations, etc., and can output values to target variables. You can enter STRINGS /? in the DOS prompt to view all its usage parameters.
STRINGS/? (View the list of sub - commands of STRINGS)
The following is the list of sub - commands of STRINGS:
LEFT RIGHT MID LENGTH FIND FINDC
LOWER UPPER CHAR VAL FILEDRIVE FILEDIR
FILENAME FILEEXT PARSE ADDCOMMAS REPEAT READ
WRITE FILESIZE LINESIZE TRUENAME FILEDATE FILETIME
VER ASK INWIN 2FCHECK ENVFREE ENVSIZE
MASTERVAR LOCALVAR TRUEVER FILES LASTDRIVE CODEPAGE
COUNTRY BIOSDATE GETKEY LOCALENV MASTERENV ADD
SUB MUL DIV AND OR XOR
NOT CONVERT PEEK POKE IN OUT
INTERRUPT SCAN DAY MONTH DATE TIME
MEMTOTAL MEMFREE XMSTOTAL XMSFREE XMSVER EMSTOTAL
EMSFREE EMSVER UMBLARGE STRINGSVER INSTALLED HELP
To view the help of a specific command, please enter: STRINGS HELP sub - command
For example: STRINGS HELP LEFT (will display the detailed usage of the LEFT sub - command)
The following are their detailed grammars and functions. The content in 〈〉 is the description of the function.
1. STRINGS LEFT source string number of characters to take 〈Take the specified number of characters from the left of the source string〉
2. STRINGS RIGHT source string number of characters to take 〈Take the specified number of characters from the right of the source string〉
3. STRINGS MID source string start number, end number 〈Take from the middle of the source string〉
4. STRINGS LENGTH source string 〈Return the character length of the source string〉
5. STRINGS FIND source string character 〈Find the specified character from the source character〉
6. STRINGS FINDC source string character 〈Find the specified character from the source character, case - sensitive〉
7. STRINGS LOWER source string 〈Convert the uppercase letters in the source string to lowercase letters〉
8. STRINGS UPPER source string 〈Convert the lowercase letters in the source string to uppercase letters〉
9. STRINGS CHAR character ... 〈Convert characters to ASCII numbers〉
10. STRINGS VAL number ... 〈Convert numbers to ASCII characters〉
11. STRINGS FILEDRIVE file name 〈Return the drive letter where the file name is located〉
12. STRINGS FILEDIR file name 〈Return the directory where the file name is located〉
13. STRINGS FILENAME source file name 〈Return the file name of the source file name, without the extension〉
14. STRINGS FILEEXT source file name 〈Only return the extension of the source file name〉
15. STRINGS ADDCOMMAS number 〈Separate the number with commas every three digits〉
16. STRINGS REPEAT number of repetitions, character or number 〈Repeat the character or number as specified〉
17. STRINGS READ file name, number of lines 〈Read the content of the specified number of lines in the file〉
18. STRINGS WRITE file name, character 〈Append the character to the file〉
19. STRINGS FILESIZE file name 〈Return the size of the file〉
20. STRINGS LINESIZE file name 〈Return the total number of lines of the file content〉
21. STRINGS TRUENAME file name 〈Return the complete path of the file〉
22. STRINGS FILEDATE file name 〈Return the modification date of the file〉
23. STRINGS FILETIME file name 〈Return the modification time of the file〉
24. STRINGS VER 〈Return the DOS version number of the current system〉
25. STRINGS ASK prompt string 〈Dialogue〉
26. STRINGS INWIN 〈Return 1 if running in the DOS window in WINDOWS〉
27. STRINGS ENVFREE 〈Return the free bytes of the environment variable space〉
28. STRINGS ENVSIZE 〈Return the total size of the environment variable space〉
29. STRINGS TRUEVER 〈Return the true version number of the current DOS〉
30. STRINGS FILES 〈Return the number of files accessed simultaneously at present〉
31. STRINGS LASTDRIVE 〈Return the last valid drive letter that the current system can access〉
32. STRINGS CODEPAGE 〈Return the active long file code page of the current system〉
33. STRINGS COUNTRY 〈Return the country code set by the current system〉
34. STRINGS BIOSDATE 〈Return the date of BIOS factory setting〉
35. STRINGS GETKEY 〈Return the ASCII code of the key pressed〉
36. STRINGS ADD number 1, number 2 ... 〈Perform + operation on numbers〉
37. STRINGS SUB number 1, number 2 ... 〈Perform - operation on numbers〉
38. STRINGS MUL number 1, number 2 ... 〈Perform × operation on numbers〉
39. STRINGS DIV number 1, number 2 ... 〈Perform ÷ operation on numbers〉
40. STRINGS AND number 1, number 2 ... 〈Perform "logical AND" operation on numbers〉
41. STRINGS OR number 1, number 2 ... 〈Perform "logical OR" operation on numbers〉
42. STRINGS NOT number 1, number 2 ... 〈Perform "logical NOT" operation on numbers〉
43. STRINGS MEMTOTAL 〈Return the total size of the conventional memory of the system〉
44. STRINGS MEMFREE 〈Return the free size of the conventional memory of the system〉
45. STRINGS XMSTOTAL 〈Return the total size of the extended memory of the system〉
46. STRINGS XMSFREE 〈Return the free size of the extended memory of the system〉
47. STRINGS XMSVER 〈Return the version number of the driver program used by the current extended memory〉
48. STRINGS EMSTOTAL 〈Return the total size of the expanded memory of the system〉
49. STRINGS EMSFREE 〈Return the free size of the expanded memory of the system〉
50. STRINGS EMSVER 〈Return the version number of the driver program used by the current expanded memory〉
51. STRINGS STRINGSVER 〈Return the version number of STRINGS〉
The following are the sub - commands that I haven't understood yet. Please supplement their functions if anyone knows. Thank you!!
PARSE 2FCHECK MASTERVAR LOCALVAR LOCALENV MASTERENV XOR
CONVERT PEEK POKE IN OUT INTERRUPT SCAN
DAY MONTH DATE TIME UMBLARGE INSTALLED
Thank you again, Climbing! Everyone who likes it should give a thumbs up! Hehe!!!
此帖被 +39 点积分 点击查看详情 评分人:【 lxmxn 】 | 分数: +12 | 时间:2007-6-5 22:54 | 评分人:【 dslz666 】 | 分数: +2 | 时间:2008-4-29 18:58 | 评分人:【 Climbing 】 | 分数: +25 | 时间:2010-11-10 11:49 |
|
|
|
2004-11-10 00:00 |
|
|
qzwqzw
银牌会员
     天的白色影子
积分 2343
发帖 636
注册 2004-3-6
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
没错,好东西,可惜用不太着。不过还是要顶的!
Yeah, it's a great thing, but unfortunately it's not very useful. Still, I have to give it a thumbs up!
|
|
2004-11-11 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
翻译的不错。顶一下!
That's a good translation. Give it a thumbs up!
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-11-12 00:00 |
|
|
xztw
初级用户
 
积分 20
发帖 8
注册 2006-8-14
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
更正:
9.STRINGS [目标变量=]CHAR 数字 [数字1] [数字2]... 〈将数字转换成ASCII字符〉
10、STRINGS [目标变量=]VAL 字符 [字符1] [字符2]... 〈将字符转换成ASCII数字〉
Correction:
9. STRINGS CHAR number ... 〈Convert number to ASCII character〉
10. STRINGS VAL character ... 〈Convert character to ASCII number〉
|
|
2006-8-20 15:27 |
|
|
lizaoyou
中级用户
  
积分 210
发帖 85
注册 2007-1-14 来自 广东广州
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
顶一下!纯DOS的字符处理能力较弱,STRINGS可作为很好的增强工具。
STRINGS [变量=] PARSE 源字串,段序号,分隔符
返回指定序号、分隔符分隔的字符段
如:STRINGS PARSE 2007-02-06,2,- 返回 02
Bump up! The character processing ability of pure DOS is relatively weak, and STRINGS can be used as a very good enhancement tool.
STRINGS PARSE source string, segment number, delimiter
Returns the character segment with the specified number and delimited by the delimiter
For example: STRINGS PARSE 2007-02-06, 2, - returns 02
|
|
2007-2-7 05:37 |
|
|
6622186
高级用户
   
积分 894
发帖 411
注册 2007-2-17
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
不太懂, 既然看了也要顶一下.
Not quite understand, but since I've read it, I should give it a thumbs up.
|

@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul
|
|
2007-3-9 02:55 |
|
|
starrysky
新手上路

积分 10
发帖 5
注册 2007-5-28
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
谢谢楼主,找一下 STRINGS 的下载
Thanks to the LZ, looking for the download of STRINGS
|
|
2007-5-28 16:30 |
|
|
chishingchan
银牌会员
    
积分 1282
发帖 538
注册 2002-11-2
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
能否举个例子说明使用方法呢?
Can you give an example to illustrate how to use it?
|
|
2007-6-5 22:29 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
|
2007-6-5 22:47 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
翻译得不错,我也来支持下。
That's a good translation. I'll also come to support.
|
|
2007-6-5 22:55 |
|
|
lpic2003
新手上路

积分 11
发帖 6
注册 2006-11-19
状态 离线
|
|
2007-7-5 21:32 |
|
|
bd123456789
中级用户
  
积分 360
发帖 216
注册 2007-5-29
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
太好了
不过,我的DOS或者CMD中怎么不能用这个命令???
是不是我的版本太低,什么命令能看到??
另外,CMD中的增强命令是哪些,怎么安装??
Last edited by bd123456789 on 2007-7-6 at 08:55 PM ]
Great.
But why can't I use this command in my DOS or CMD? Is my version too low, and which command can I use to check?
Additionally, which are the enhanced commands in CMD, and how to install them?
Last edited by bd123456789 on 2007-7-6 at 08:55 PM ]
|
|
2007-7-6 20:53 |
|
|
gahyga
新手上路

积分 2
发帖 1
注册 2007-11-28
状态 离线
|
『第 13 楼』:
好东西
使用 LLM 解释/回答一下
好东西,小弟刚好用上,谢谢了
Good stuff, the younger brother just happened to use it, thank you
|
|
2008-1-7 15:15 |
|
|
dslz666
中级用户
  
积分 233
发帖 117
注册 2007-11-28
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
谢谢,终于找到了帮助文件
Thanks, finally found the help file
|
|
2008-3-25 12:20 |
|
|
prodigall
初级用户
 
积分 80
发帖 36
注册 2007-6-14
状态 离线
|
|
2008-5-6 18:22 |
|