编写.bat 文件 @echo off %1(start /min cmd.exe /c %0 :&exit) #下面是自己的cmd命令,可以随便输入 ping www.baidu.com > baidu.txt