Question: Batch Script The script is a .bat file. Options 1-4 already work. The name of the file is Menu.bat. The code of the script is
Batch Script
The script is a ".bat" file. Options 1-4 already work.
The name of the file is "Menu.bat".
The code of the script is found below:
@echo off for /F "tokens=2" %%i in ('date /t') do set mydate=%%i set mytime=%time/t% echo Program started at %mytime/t% on %mydate% echo ################################# echo. echo MENU TO EXECUTE COMMANDS echo. echo NAME:/*-/*-*/-*/-*/-*/-/-/-*/ echo ################################# echo. echo 1. Open Chrome echo 2. Copy a file echo 3. Open a new CMD window echo 4. Transfer files using Bluetooth echo 5. Version of windows currently installed echo 6. Help/Support echo 7. Hardware of the device(Device Specifications) echo 8. Exit
set /p Option=%1
if %Option%==1 start chrome if %Option%==2 copy SomeFile.txt CopyOfSaidFile.txt if %Option%==3 start %systemroot%\system32\cmd.exe if %Option%==4 fsquirt if %Option%==5 if %Option%==6 if %Option%==7 if %Option%==8 exit
I need you to modify the script so that when I run it once (In other words, select an option) it does not automatically end the script.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
