Dušan Xmetov Posted May 28, 2011 Share Posted May 28, 2011 Ok people, today i was pretty much bored, so i wrote a bunch of Scripts so other people don't have to . All of these Scripts work, i tested them. You may need to modify them, depending on your system These scripts are to mount Red Alert CDs and Launch Red Alert: RA.BAT @echo off cls if not "%CD%"=="YES" goto EMPTY if "%CDisk%"=="RaCD1" goto RaCD1 if "%CDisk%"=="RaCD2" goto RaCD2 if "%CDisk%"=="RaCD3" goto RaCD3 if "%CDisk%"=="RaCD4" goto RaCD4 echo An unknown Disk detected in Drive D: goto Game :RaCD1 echo The Allied CD detected. pause set playra=yes goto Game :RaCD2 echo The Soviet CD detected. pause set playra=yes goto Game :RaCD3 echo The Counterstrike CD detected. pause set playra=yes goto Game :RaCD4 echo The Aftermath CD detected. pause set playra=yes goto Game :EMPTY echo The CD-Rom drive is Empty. You can mount a Red Alert CD by typing RACDX, echo where X is: echo 1 for Allies echo 2 for Soviets echo 3 for Counterstricke echo 4 for Aftermath goto Game :Game C: CD \ CD GAMES if "%playra%"=="yes" cd C&C_RA if "%playra%"=="yes" RA if "%playra%"=="yes" C: if "%playra%"=="yes" CD \ if "%playra%"=="yes" CD GAMES if "%playra%"=="yes" CLS if "%playra%"=="yes" echo Thank you for playing Red Alert if "%playra%"=="yes" set playra= RACD1.BAT @echo off if "%CD%"=="YES" goto CDCHECK goto MOUNT :CDCHECK if "%CDisk%"=="RaCD1" goto ALREADY if "%CDisk%"=="RaCD2" goto RaCD2 if "%CDisk%"=="RaCD3" goto RaCD3 if "%CDisk%"=="RaCD4" goto RaCD4 echo The CD cannot be mounted! A unknown Disk is mounted in Drive D: echo If you want to mount the Allied Red Alert CD, You need to close DOSBox, echo and restart it. goto Error :ALREADY echo The Allied Red Alert CD is already mounted Goto Error :RaCD2 echo Soviet Red Alert CD is currently mounted in Drive D: echo If you want to mount the Allied Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD3 echo Counterstrike Red Alert CD is currently mounted in Drive D: echo If you want to mount the Allied Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD4 echo Aftermath Red Alert CD is currently mounted in Drive D: echo If you want to mount the Allied Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :MOUNT imgmount d .dosbox/ISO/RA_CD1_ALLIED_DISC.ISO -t iso >nul set CD=YES set CDisk=RaCD1 echo Mounting ... echo. echo 1 Operations Finished! goto EXIT :Error echo. echo 0 Operations Finished! goto EXIT :EXIT RACD2.BAT @echo off if "%CD%"=="YES" goto CDCHECK goto MOUNT :CDCHECK if "%CDisk%"=="RaCD2" goto ALREADY if "%CDisk%"=="RaCD1" goto RaCD1 if "%CDisk%"=="RaCD3" goto RaCD3 if "%CDisk%"=="RaCD4" goto RaCD4 echo The CD cannot be mounted! A unknown Disk is mounted in Drive D: echo If you want to mount the Soviet Red Alert CD, You need to close DOSBox, echo and restart it. goto Error :ALREADY echo The Soviet Red Alert CD is already mounted Goto Error :RaCD1 echo Allied Red Alert CD is currently mounted in Drive D: echo If you want to mount the Soviet Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD3 echo Counterstrike Red Alert CD is currently mounted in Drive D: echo If you want to mount the Soviet Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD4 echo Aftermath Red Alert CD is currently mounted in Drive D: echo If you want to mount the Soviet Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :MOUNT imgmount d .dosbox/ISO/RA_CD2_SOVIET_DISC.ISO -t iso >nul set CD=YES set CDisk=RaCD2 echo Mounting ... echo. echo 1 Operations Finished! goto EXIT :Error echo. echo 0 Operations Finished! goto EXIT :EXIT RACD3.BAT @echo off if "%CD%"=="YES" goto CDCHECK goto MOUNT :CDCHECK if "%CDisk%"=="RaCD3" goto ALREADY if "%CDisk%"=="RaCD1" goto RaCD1 if "%CDisk%"=="RaCD2" goto RaCD2 if "%CDisk%"=="RaCD4" goto RaCD4 echo The CD cannot be mounted! A unknown Disk is mounted in Drive D: echo If you want to mount the Counterstrike Red Alert CD, You need to close DOSBox, echo and restart it. goto Error :ALREADY echo The Soviet Red Alert CD is already mounted Goto Error :RaCD1 echo Allied Red Alert CD is currently mounted in Drive D: echo If you want to mount the Counterstrike Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD2 echo Soviet Red Alert CD is currently mounted in Drive D: echo If you want to mount the Counterstrike Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD4 echo Aftermath Red Alert CD is currently mounted in Drive D: echo If you want to mount the Counterstrike Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :MOUNT imgmount d .dosbox/ISO/RA_CD3_COUNTERSTRIKE.ISO -t iso >nul set CD=YES set CDisk=RaCD3 echo Mounting ... echo. echo 1 Operations Finished! goto EXIT :Error echo. echo 0 Operations Finished! goto EXIT :EXIT RACD4.BAT @echo off if "%CD%"=="YES" goto CDCHECK goto MOUNT :CDCHECK if "%CDisk%"=="RaCD4" goto ALREADY if "%CDisk%"=="RaCD2" goto RaCD2 if "%CDisk%"=="RaCD3" goto RaCD3 if "%CDisk%"=="RaCD1" goto RaCD1 echo The CD cannot be mounted! A unknown Disk is mounted in Drive D: echo If you want to mount the Aftermath Red Alert CD, You need to close DOSBox, echo and restart it. goto Error :ALREADY echo The Allied Red Alert CD is already mounted Goto Error :RaCD2 echo Soviet Red Alert CD is currently mounted in Drive D: echo If you want to mount the Aftermath Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD3 echo Counterstrike Red Alert CD is currently mounted in Drive D: echo If you want to mount the Aftermath Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :RaCD1 echo Allied Red Alert CD is currently mounted in Drive D: echo If you want to mount the Aftermath Red Alert CD, You need to close DOSBox, echo and restart it. Goto Error :MOUNT imgmount d .dosbox/ISO/RA_CD4_THE_AFTERMATH.ISO -t iso >nul set CD=YES set CDisk=RaCD4 echo Mounting ... echo. echo 1 Operations Finished! goto EXIT :Error echo. echo 0 Operations Finished! goto EXIT :EXIT Link to comment Share on other sites More sharing options...
Nyerguds Posted May 28, 2011 Share Posted May 28, 2011 So, um... what's stopping you from mounting ALL isos before starting the game? Or does DOS RA only see the first CDROM? Link to comment Share on other sites More sharing options...
Dušan Xmetov Posted May 29, 2011 Author Share Posted May 29, 2011 I'm not sure, but i think it only see's the 1st one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now