ECHO每2行一个空白行

时间:2017-08-17 12:46:32

标签: batch-file cmd

我试图在批处理文件中获取有关服务的信息。输入sc query | findstr "SERVICE_NAME DISPLAY_NAME"并获得类似的输出:

SERVICE_NAME: Appinfo DISPLAY_NAME: Uygulama Bilgileri SERVICE_NAME: AudioEndpointBuilder DISPLAY_NAME: Windows Ses Bitiş Noktası Oluşturucu SERVICE_NAME: Audiosrv DISPLAY_NAME: Windows Ses SERVICE_NAME: bdredline DISPLAY_NAME: Bitdefender RedLine Service SERVICE_NAME: BFE

我想每2行回显一个空白行。像那样:

SERVICE_NAME: Appinfo DISPLAY_NAME: Uygulama Bilgileri

SERVICE_NAME: AudioEndpointBuilder DISPLAY_NAME: Windows Ses Bitiş Noktası Oluşturucu

我该怎么做? BTW英语不是我的第一语言,我可以称自己为菜鸟。所以请用基本单词解释一下。

0 个答案:

没有答案