如何把CMD运行结果存为TXT文本格式?
发布网友
发布时间:2023-03-17 19:58
我来回答
共3个回答
热心网友
时间:2023-11-05 03:08
右击标题栏 -编辑-全选-右击标题栏-编辑-复制......然后粘贴到记事本中就可以啦
如:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\xjx>ping 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\xjx>
热心网友
时间:2023-11-05 03:08
右击标题栏
-编辑-全选-右击标题栏-编辑-复制......然后粘贴到记事本中就可以啦
如:
Microsoft
Windows
XP
[版本
5.1.2600]
(C)
版权所有
1985-2001
Microsoft
Corp.
C:\Documents
and
Settings\xjx>ping
127.0.0.1
Pinging
127.0.0.1
with
32
bytes
of
data:
Reply
from
127.0.0.1:
bytes=32
time<1ms
TTL=128
Reply
from
127.0.0.1:
bytes=32
time<1ms
TTL=128
Reply
from
127.0.0.1:
bytes=32
time<1ms
TTL=128
Reply
from
127.0.0.1:
bytes=32
time<1ms
TTL=128
Ping
statistics
for
127.0.0.1:
Packets:
Sent
=
4,
Received
=
4,
Lost
=
0
(0%
loss),
Approximate
round
trip
times
in
milli-seconds:
Minimum
=
0ms,
Maximum
=
0ms,
Average
=
0ms
C:\Documents
and
Settings\xjx>
热心网友
时间:2023-11-05 03:09
>>a.txt 这样就可以了.
如
echo 你好>>a.txt
或
dir c:\*.*>>a.txt