|
9527
银牌会员
     努力做坏人
积分 1185
发帖 438
注册 2006-8-28 来自 北京
状态 离线
|
『楼 主』:
Mtee 工具
使用 LLM 解释/回答一下
我真是懒得说干什么了,你们就不应该用这个
Last edited by 9527 on 2007-4-12 at 09:56 PM ]
I'm really too lazy to say what to do, you shouldn't use this at all
Last edited by 9527 on 2007-4-12 at 09:56 PM ]
|

我今后在论坛的目标就是做个超级坏人!!! |
|
2006-9-12 02:16 |
|
|
iaide007
初级用户
 
积分 36
发帖 12
注册 2006-9-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
那个E文好的;翻译个说明来看看哦;
俺这小学没毕业的看不懂。
The one with good English; translate an explanation to take a look oh;
I, who didn't graduate from primary school, can't understand.
|

QQ群名称:◥◣批处理时代◢◤
QQ群号码:6702314 |
|
2006-9-12 10:25 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
粗略看了一下最令我头痛的E文帮助,发现这个东东确实强悍,能够把输出的文本保存成ANSI格式或者Unicod格式,这下读取注册表的中文字符就比较好解决了。其他的功能正在测试中……
I took a quick look at the English help that gave me the most headache, and found that this thing is really powerful. It can save the output text in ANSI format or Unicod format. Now it's relatively easy to solve the problem of reading Chinese characters in the registry. Other functions are being tested...
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-12 12:10 |
|
|
yangzhiyi
中级用户
  
积分 261
发帖 123
注册 2006-6-6
状态 离线
|
|
2006-10-28 22:31 |
|
|
amao
中级用户
  
积分 316
发帖 152
注册 2006-6-18
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
若正如namejm版主所说的那样,那真是太有用了,下载来看看,谢谢。
If it is really as what the moderator namejm said, that's really useful. I'll download it and have a look. Thanks.
|
|
2006-10-29 00:31 |
|
|
weilong888
银牌会员
    
积分 1270
发帖 548
注册 2004-5-31
状态 离线
|
|
2006-10-29 00:43 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2006-9-12 12:10:
粗略看了一下最令我头痛的E文帮助,发现这个东东确实强悍,能够把输出的文本保存成ANSI格式或者Unicod格式,这下读取注册表的中文字符就比较 ...
版主可以说下读取注册表中的中文字符会遇到哪些困难呢?我不知道,所以就问了……
另外,谢谢 9527 兄~
Originally posted by namejm at 2006-9-12 12:10:
A rough look at the most headache-inducing English help, I found that this thing is really powerful, able to save the output text as ANSI format or Unicode format, now reading Chinese characters in the registry is relatively...
Can the moderator tell me what difficulties are encountered when reading Chinese characters in the registry? I don't know, so I asked...
Also, thank you, Brother 9527~
|
|
2006-10-29 03:06 |
|
|
wjdbar
新手上路

积分 6
发帖 3
注册 2006-10-28
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
我汗 超级 看不明白.
I'm sweating. Super, can't understand at all.
|
|
2006-10-29 03:19 |
|
|
llgg001
初级用户
 
积分 32
发帖 13
注册 2006-10-30
状态 离线
|
『第 9 楼』:
WHAT??
使用 LLM 解释/回答一下
试试看,什么东西啊——————
Let's give it a try, what is it——————
|
|
2006-11-8 05:18 |
|
|
eech
高级用户
   
积分 906
发帖 346
注册 2006-7-10
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
你们说的太深了.短期内.不一定搞的懂
What you said is too profound. In the short term, it may not be understood.
|
|
2006-11-9 08:32 |
|
|
scriptor
银牌会员
    
积分 1187
发帖 555
注册 2006-12-21
状态 离线
|
|
2006-12-27 01:46 |
|
|
enjoylily
初级用户
 
积分 21
发帖 11
注册 2006-11-6
状态 离线
|
|
2006-12-27 02:47 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
既然这样,我就简单的写一些例子上来看看吧。
这个 Mtee.exe 工具最主要的用途是在显示屏幕输出的同时,将屏幕输出以指定的格式重定向到一个文件中去。下面举几个简单的例子来说明它的简单用法。
1、显示当前目录的文件夹及文件列表的同时,将屏幕输出写入a.txt文件中。
dir /a/b|mtee a.txt
2、/+ 参数是追加到文件的意思,相当于我们经常用的 >> a.txt。这样不会覆盖原来文件中的内容。如果a.txt文件不存在,将会自动创建。
echo %date%_%time%|mtee /+ a.txt
3、/d /t 参数分别可以在每一行输出的前面加上当前日期及时间信息。
ver|mtee /d /t /+ a.txt
4、/a /u 参数可以指定保存文件时使用的编码。/c 参数的意思大概就是读写文件错误时,也继续执行。例子就不多举了,原谅。
───────────────────────────────────────────────────
借用本帖,上传附件,望 lxmxn 兄勿怪。by HAT @ 2008-10-10
mtee.exe(2.0)
http://upload.cn-dos.net/img/908.zip
───────────────────────────────────────────────────
Last edited by HAT on 2008-10-10 at 07:07 ]
In that case, I'll simply write some examples to take a look.
The main use of this Mtee.exe tool is to display the output on the screen while redirecting the screen output to a file in the specified format. Here are a few simple examples to illustrate its simple usage.
1. While displaying the folder and file list of the current directory, write the screen output to the a.txt file.
dir /a/b|mtee a.txt
2. The /+ parameter means appending to the file, which is equivalent to the >> a.txt we often use. This will not overwrite the content in the original file. If the a.txt file does not exist, it will be created automatically.
echo %date%_%time%|mtee /+ a.txt
3. The /d and /t parameters can respectively add the current date and time information in front of each line of output.
ver|mtee /d /t /+ a.txt
4. The /a and /u parameters can specify the encoding used when saving the file. The meaning of the /c parameter is probably that when there is an error in reading and writing the file, it will continue to execute. I won't give more examples, forgive me.
───────────────────────────────────────────────────
Borrow this post to upload an attachment, hope lxmxn brother don't mind. by HAT @ 2008-10-10
mtee.exe(2.0)
http://upload.cn-dos.net/img/908.zip
───────────────────────────────────────────────────
Last edited by HAT on 2008-10-10 at 07:07 ]
|
|
2006-12-27 03:47 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by namejm at 2006-9-12 12:10:
粗略看了一下最令我头痛的E文帮助,发现这个东东确实强悍,能够把输出的文本保存成ANSI格式或者Unicod格式,这下读取注册表的中文字符就比较 ...
namejm斑竹,经过我多次试验发现,其实ANSI和UNICOD格式转换无需要任何第三方工具就可以轻松实现,注册表中使用REG EXPORT等导出的文件是UNICOD的,很多DOS工具都无法操作,如使用BINSUB工具无法替换其中的字符,那么可以使用TYPE 命令直接输出到另一个文件中,TYPE命令就可以把UNICOD转化为ANSII码,如TYPE 01.REG >02.REG。但是我使用FOR和 FINDSTR等都无法实现(这两个命令原来是什么码输出后就是什么码)。
要反响转换,即把ANSII转化为UNICOD码,其实没有什么意思,可以先随便导出任一注册表,然后使用cd %cd% >01.reg来清空01.reg这样就建立了一个UNICOD的空文本,你现在可以使用其他方法写东西进去了,就是UNICOD文本了.
Originally posted by namejm at 2006-9-12 12:10:
A rough look at the most headache-inducing English help, I found that this thing is really powerful, able to save the output text as ANSI format or Unicod format, and now reading Chinese characters in the registry is relatively ...
Bamboo Master namejm, after my multiple experiments, I found that in fact, the conversion between ANSI and UNICOD formats can be easily achieved without any third-party tools. The files exported using REG EXPORT and other methods in the registry are in UNICOD format, and many DOS tools cannot operate on them. For example, using the BINSUB tool cannot replace the characters in them. Then you can use the TYPE command to directly output to another file. The TYPE command can convert UNICOD to ANSII code. For example, TYPE 01.REG >02.REG. But I can't achieve it using FOR and FINDSTR and other commands (these two commands output in the original code and remain in that code after output).
To convert in reverse, that is, convert ANSII to UNICOD code, it is actually not meaningful. You can first randomly export any registry, then use cd %cd% >01.reg to clear 01.reg, so as to create an empty text in UNICOD. Now you can use other methods to write things in, which will be a UNICOD text.
|
|
2006-12-28 11:05 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
看了下,MTEE的确是一个好工具。
After taking a look, MTEE is indeed a good tool.
|
|
2006-12-28 11:31 |
|