-4

如何使批处理文件在其中打开另一个 CMD 窗口?

Title Matrix
color a
mode 1000
:start
Echo %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random%
Goto start
4

3 回答 3

3
  1. 打开记事本

  2. 粘贴上面的代码

  3. 将文件另存为 filename.bat 或 filename.cmd

  4. 双击它执行

于 2013-05-15T18:10:15.830 回答
1

使用start命令:

start myFile.bat

另外,检查在新窗口中从批处理运行批处理文件

于 2013-05-15T18:27:48.610 回答
1

这就是你想要的。这很简单。学习一些命令,但这是您的代码:

echo.@echo off>matrix.bat
echo.Title Matrix>>matrix.bat
echo.color a>>matrix.bat
echo.mode 1000>>matrix.bat
echo.:start>>matrix.bat
echo."echo. %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random%    %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random% %Random%">>matrix.bat
echo.goto start>>matrix.bat
start matrix.bat
goto :eof
于 2013-05-20T18:42:41.740 回答