How to use batch more commands
This article mainly introduces "how to use batch more commands". In daily operation, I believe many people have doubts about how to use batch more commands. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use batch more commands". Next, please follow the editor to study!
The code is as follows:
MORE [/ E [/ C] [/ P] [/ S] [/ Tn] [+ n]]
< [drive:][path]filename command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]] MORE /E [/C] [/P] [/S] [/Tn] [+n] [files] [drive:][path]filename 指定要逐屏显示的文件。 command-name 指定要显示其输出的命令。 /E 启用扩展功能 /C 显示页面前先清除屏幕 /P 扩展 FormFeed 字符 /S 将多个空白行缩成一行 /Tn 将制表符扩展为 n 个空格(默认值为 8) 开关可以出现在 MORE 环境变量中。 +n 从第 n 行开始显示第一个文件 files 要显示的文件列表。使用空格分隔列表中的文件。 如果已启用扩展功能,则在 -- More -- 提示处 接受下列命令: P n 显示下 n 行 S n 跳过下 n 行 F 显示下个文件 Q 退出 = 显示行号 ? 显示帮助行 显示下一页 显示下一行 命令概括: more,意为"更多",这里可以引申为"除这些外还有……" /e,enable Expansion,意为"允许扩展"。 /c,clear,意为"清除"。 /p,expand,意为"扩展"。 /s,squeeze,意为"挤;压榨"。"挤"字已经非常形象的说明了这个参数的用途。 /t,tabs,意为"制表符"。 参数详解: more命令就是一次显示一屏幕的内容(这里的一屏幕是指cmd窗口的屏幕,不是显示器)。 1.将指定命令的输出,逐屏显示 最常用到情况的是显示ip地址信息的时候。 例如: 代码如下: C:\Users\helloworld\Desktop>Ipconfig / all | more
Results:
The code is as follows:
Windows IP configuration
Hostname. . . . . . . . . . . . . : helloworld-PC
Main DNS suffix. . . . . . . . . . . :
Node type. . . . . . . . . . . . : mixed
IP routing is enabled. . . . . . . . . . : no
The WINS agent is enabled. . . . . . . . . : no
PPP Adapter Broadband connection:
Connect a specific DNS suffix. . . . . . . :
Description. . . . . . . . . . . . . . . Broadband connection
Physical address. . . . . . . . . . . . . :
DHCP is enabled. . . . . . . . . . . : no
Automatic configuration is enabled. . . . . . . . . . : yes
IPv4 address. . . . . . . . . . . . : 110.206.18.142 (preferred)
Subnet mask. . . . . . . . . . . . : 255.255.255.255
Default gateway. . . . . . . . . . . . . : 0.0.0.0
DNS server. . . . . . . . . . . : 61.234.254.6
211.98.2.4
NetBIOS on TCPIP. . . . . . . : disabled
Ethernet adapter local connection:
-- More--
two。 Display the contents of the specified text screen by screen
What is in the 1.txt:
Display the output screen by screen.
The code is as follows:
MORE [/ E [/ C] [/ P] [/ S] [/ Tn] [+ n]]
< [drive:][path]filename command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]] MORE /E [/C] [/P] [/S] [/Tn] [+n] [files] [drive:][path]filename 指定要逐屏显示的文件。 command-name 指定要显示其输出的命令。 /E 启用扩展功能 /C 显示页面前先清除屏幕 /P 扩展 FormFeed 字符 /S 将多个空白行缩成一行 /Tn 将制表符扩展为 n 个空格(默认值为 8) 开关可以出现在 MORE 环境变量中。 +n 从第 n 行开始显示第一个文件 files 要显示的文件列表。使用空格分隔列表中的文件。 如果已启用扩展功能,则在 -- More -- 提示处 接受下列命令: P n 显示下 n 行 S n 跳过下 n 行 F 显示下个文件 Q 退出 = 显示行号 ? 显示帮助行 显示下一页 显示下一行 这有两种写法。 ①.直接显示。 代码: 代码如下: C:\Users\HELLOW~1\Desktop>More 1.txt
Effect:
Display the output screen by screen.
The code is as follows:
MORE [/ E [/ C] [/ P] [/ S] [/ Tn] [+ n]]
< [drive:][path]filename command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]] MORE /E [/C] [/P] [/S] [/Tn] [+n] [files] [drive:][path]filename 指定要逐屏显示的文件。 command-name 指定要显示其输出的命令。 /E 启用扩展功能 /C 显示页面前先清除屏幕 /P 扩展 FormFeed 字符 /S 将多个空白行缩成一行 /Tn 将制表符扩展为 n 个空格(默认值为 8) 开关可以出现在 MORE 环境变量中。 +n 从第 n 行开始显示第一个文件 files 要显示的文件列表。使用空格分隔列表中的文件。 如果已启用扩展功能,则在 -- More -- 提示处 接受下列命令: P n 显示下 n 行 S n 跳过下 n 行 F 显示下个文件 -- More (88%) -- ②.用重定向符显示。 代码: 代码如下: C:\Users\HELLOW~1\Desktop>More