Hi all,
I made a batch file that user enters the number 1, (Press any key to determine) to run del "data.exe"-q; the user to enter two running Exit (Exit)
Please share some Batch file. Thank you.Code:qmcmc Published 2010-4-11 14:37 @ Echo off set / p re = Please enter the numbers: if 1 ==% re% goto 1111 if 2 ==% re% goto 2222 :2222 echo. you enter values for the 2 pause exit :1111 echo. you enter values for a deleted data.exe del "data.exe"-q> nul 2> nul pause @ Echo off echo.1 remove echo.2 exit set / pi = Please enter 1 or 2: if% i% EQU 1 del date.exe-q if% i% EQU 2 exit I write this this is not? You write if 1 ==% re% goto 1111 if 2 ==% re% goto 2222: 2222 1111 What does it mean 2222:2222 mean? You did not write the wrong, but not recommended Do not play like this is good if you can run a number of command but also easy to judge them goto 2222 jump behind the 2222 Executive Order : 2222 then goto jump
Bookmarks