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 05:18
Original Poster Posted 2006-09-12 02:16 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
anakin +1 2006-12-02 01:15
我今后在论坛的目标就是做个超级坏人!!!
Floor 2 Posted 2006-09-12 10:25 ·  中国 福建 厦门 电信
初级用户
Credits 36
Posts 12
Joined 2006-09-08 18:40
19-year member
UID 62153
Gender Male
Status Offline
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
Floor 3 Posted 2006-09-12 12:10 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
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没商量。
考虑问题复杂化,解决问题简洁化。
Floor 4 Posted 2006-10-28 22:31 ·  中国 广东 茂名 电信
中级用户
★★
Credits 261
Posts 123
Joined 2006-06-06 19:23
20-year member
UID 56648
Status Offline
Say thank you even if it's not useful
Floor 5 Posted 2006-10-29 00:31 ·  美国 缅因州
中级用户
★★
Credits 316
Posts 152
Joined 2006-06-18 13:01
20-year member
UID 57204
Gender Male
Status Offline
If it is really as what the moderator namejm said, that's really useful. I'll download it and have a look. Thanks.
Floor 6 Posted 2006-10-29 00:43 ·  中国 浙江 衢州 电信
银牌会员
★★★
Credits 1,270
Posts 548
Joined 2004-05-31 00:00
22-year member
UID 25754
Gender Male
Status Offline
Floor 7 Posted 2006-10-29 03:06 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
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~
Floor 8 Posted 2006-10-29 03:19 ·  中国 广东 深圳 罗湖区 电信
新手上路
Credits 6
Posts 3
Joined 2006-10-28 05:58
19-year member
UID 68606
Gender Male
Status Offline
I'm sweating. Super, can't understand at all.
Floor 9 Posted 2006-11-08 05:18 ·  中国 河北 石家庄 联通
初级用户
Credits 32
Posts 13
Joined 2006-10-30 01:21
19-year member
UID 68815
Gender Male
Status Offline
Let's give it a try, what is it——————
Floor 10 Posted 2006-11-09 08:32 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
19-year member
UID 58334
Gender Male
Status Offline
What you said is too profound. In the short term, it may not be understood.
Floor 11 Posted 2006-12-27 01:46 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Floor 12 Posted 2006-12-27 02:47 ·  中国 湖北 武汉 电信
初级用户
Credits 21
Posts 11
Joined 2006-11-06 10:19
19-year member
UID 69786
Gender Male
Status Offline
Floor 13 Posted 2006-12-27 03:47 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  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 ]
Floor 14 Posted 2006-12-28 11:05 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
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.
Floor 15 Posted 2006-12-28 11:31 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
After taking a look, MTEE is indeed a good tool.
Forum Jump: