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-07-02 22:47
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] How to display the execution result on the screen and also save the result to View 4,997 Replies 26
Floor 16 Posted 2006-07-03 12:49 ·  中国 广东 珠海 电信
初级用户
Credits 112
Posts 40
Joined 2006-06-23 19:52
20-year member
UID 57473
Gender Male
Status Offline
Mine is also 936. After opening the tee command, I can't input Chinese characters. Only English can be input.
Floor 17 Posted 2006-07-03 23:28 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The last time I uploaded was the DOS version of TEE. If you want to use it under NT CMD, you should use the Win32 Console version of TEE, see the attachment:
Attachments
tee.exe (16.5 KiB, Credits to download 1 pts, Downloads: 38)
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 18 Posted 2006-07-05 13:10 ·  中国 广东 珠海 电信
初级用户
Credits 112
Posts 40
Joined 2006-06-23 19:52
20-year member
UID 57473
Gender Male
Status Offline
Thank you very much. This is okay this time, haha.

But I'm really sorry to ask again. The carriage return symbols in the file 1.txt generated by tee have become black boxes one by one. As soon as I mention it, you must know. All the output information has become one line, and each actual line is separated by black boxes within the line.

How can I display the information as normal many lines?

I tried using type 1.txt to display the output result just now, and it was normal again. But when I use type 1.txt > 2.txt to output to 2.txt, I find that the result is the same as in 1.txt. There are still black small boxes.
Floor 19 Posted 2006-07-05 15:29 ·  中国 广东 中山 电信
高级用户
★★★
Credits 972
Posts 420
Joined 2004-05-16 00:00
22-year member
UID 24467
Gender Male
Status Offline
平生进退如飙风
Floor 20 Posted 2006-07-05 18:56 ·  中国 广东 珠海 电信
初级用户
Credits 112
Posts 40
Joined 2006-06-23 19:52
20-year member
UID 57473
Gender Male
Status Offline
But I thought of a way to solve it.
Just paste it into another file. Haha.
Thank you, building 17. My program implemented the last big function because of your TEE.

The last question: How to exit after opening Tee?

[ Last edited by zhaxi on 2006-7-5 at 18:57 ]
Floor 21 Posted 2006-07-05 22:13 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The problem of CRLF can be directly converted using small tools like UNIX2DOS, but actually it's not necessary because the display results of commands like TYPE are all normal.

To exit TEE is very simple, both Ctrl+C or Ctrl+Z can be used.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 22 Posted 2007-03-29 03:04 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 302
Posts 138
Joined 2007-03-29 02:33
19-year member
UID 83224
Gender Male
Status Offline
Want to download the attachment ah - -
Floor 23 Posted 2007-04-21 02:51 ·  中国 广西 河池 金城江区 电信
新手上路
Credits 2
Posts 1
Joined 2007-04-20 16:31
19-year member
UID 85867
Gender Male
Status Offline
Great, I want to, thank the poster
Floor 24 Posted 2007-05-13 07:30 ·  中国 北京 海淀区 联通
新手上路
Credits 3
Posts 3
Joined 2007-05-13 05:11
19-year member
UID 88355
Gender Male
Status Offline
Thank you very much, I'm also looking for this function, thank you!
Floor 25 Posted 2007-11-12 15:22 ·  中国 上海 浦东新区 电信
新手上路
Credits 13
Posts 7
Joined 2007-10-19 11:22
18-year member
UID 100140
Gender Male
Status Offline
It seems I still use vbs, in this way, I can't always use ctr+c like this
But the thing is a good one, collect it first o(∩_∩)o... haha
Floor 26 Posted 2008-09-10 10:49 ·  中国 广东 广州 天河区 电信
新手上路
Credits 2
Posts 1
Joined 2008-09-10 09:54
17-year member
UID 125291
Gender Male
Status Offline
I've been looking for this method for a long time, let's try it down
Floor 27 Posted 2008-12-02 16:52 ·  中国 广东 广州 荔湾区 电信
新手上路
Credits 1
Posts 1
Joined 2008-12-01 12:03
17-year member
UID 132556
Gender Male
Status Offline
Pay attention to this problem. I have a program that can't capture the output with >, I wonder if the tee works.
Forum Jump: