Delete specified multiple lines of a not in use batch file through another batch file?
Posted: 03 Apr 2021 15:15
this is is a little program i made to launch games with the Project64 Emulator:
now i want to remove from another batch file, only Game3 completely, that would be , , and , but when removing and i only want to remove that from Game3, is this even possible??
Code: Select all
@echo off
echo Type 1 for Super Mario 64, type 2 for Ocarina of Time, type 3 for Majora's Mask
set /p input=
if %input%==1 goto Game1
if %input%==2 goto Game2
if %input%==3 goto Game3
:Game1
cd "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\---"
start Project64.exe "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\Roms\Super Mario 64 (USA).z64"
exit
:Game2
cd "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\---"
start Project64.exe "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\Roms\Legend of Zelda, The - Ocarina of Time (USA).n64"
exit
:Game3
cd "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\---"
start Project64.exe "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\Roms\Legend of Zelda, The - Majora's Mask (USA).z64"
exit
Code: Select all
:Game3
Code: Select all
cd "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\---"
Code: Select all
start Project64.exe "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\Roms\Legend of Zelda, The - Majora's Mask (USA).z64"
Code: Select all
exit
Code: Select all
cd "C:\Users\Giovanni\Desktop\Emuladores\Nintendo 64\---"
Code: Select all
exit