回复 1# depsyq - @echo off
- :begin
- cls
- echo 1、open the window 2 2、quit
- set /p n=
- if "%n%" == "1" goto aa
- if "%n%" == "2" exit
- goto begin
-
- :aa
- (echo @echo off
- echo :main
- echo cls
- echo echo 1、open the window 1 2、quit
- echo set /p m=
- echo if "%%m%%" == "1" start "" "1.bat"
- echo if "%%m%%" == "2" start "" "1.bat" ^& del %%0 ^&exit
- echo goto main)>2.bat
- start "" "2.bat"
- goto begin
复制代码
|