samedi 14 octobre 2017

How to close a cmd window and open a new one to continue the script

I am making a batch file to simply open a cmd window. I am attempting to make a bit of a show before actually getting to the cmd window i can type commands in. Here's what i've come up with so far. @echo off ECHO Initializing super beeboop sequence...&& PAUSE color 0a :top echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random% set /a top=%top%+1 if "%top%"=="300" goto next goto top :next pause goto next START CMD echo beep boop badoop pause START CMD /k The problem is, after all the numbers go by i want the window to close and then open a new one which will enter "beep boop badoop". Which will close afterwards, finally opening the cmd window i can type in. Feel free to leave sugestions on how to fix/improve/add to this. Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire