@echo off cd exo\util @if not exist util.zip unzip.exe -o -q *.zip CHOICE.EXE @if exist util.zip unzip.exe -o -q util.zip CHOICE.EXE cd .. cd .. @set var=%cd% @set merge=false @set exist=false @set current=%CD:~0,2% @for /f "usebackq delims== tokens=2" %%x in (`wmic logicaldisk where "DeviceID='%current%'" get FreeSpace /format:value`) do set FreeSpace=%%x setLocal EnableDelayedExpansion cd content set "folder=*." for /f "tokens=* delims= " %%a in ('Dir /b /a:-d "%folder%"') do ( set /a C+=1 ) cd .. setLocal DisableDelayedExpansion if %c% GTR 1 goto :achoose cd content for /f "tokens=* delims= " %%a in ('Dir /b /a:-d *.') do set pack=%%a cd .. goto lookforlb :achoose cd content set "folder=*." setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in ('Dir /b /a:-d "%folder%"') do ( set /a M+=1 set "File[!M!]=%%a" ) cls echo More than one pack has been detected echo Please choose the one you wish to install: echo( For /L %%j in (1,1,%M%) do ( echo Press [%%j] to select eXo!File[%%j]! ) echo. echo (Note: You will be presented with the opportunity to choose to merge echo these packs together in a later step) echo. cd .. .\exo\util\choice /C:123456789 /N Please Choose: if errorlevel = 9 ( set pack=!File[9]! goto report ) if errorlevel = 8 ( set pack=!File[8]! goto report ) if errorlevel = 7 ( set pack=!File[7]! goto report ) if errorlevel = 6 ( set pack=!File[6]! goto report ) if errorlevel = 5 ( set pack=!File[5]! goto report ) if errorlevel = 4 ( set pack=!File[4]! goto report ) if errorlevel = 3 ( set pack=!File[3]! goto report ) if errorlevel = 2 ( set pack=!File[2]! goto report ) if errorlevel = 1 ( set pack=!File[1]! goto report ) :report setLocal DisableDelayedExpansion cls :lookforlb if not exist launchbox.exe goto a1 set exist=true cls echo. echo Either eXo%pack% or another eXo project has previously been setup in this folder. echo. echo Press 1 to Re-extract eXo%pack%, Update to a New Version, or Install echo Press 2 to Merge eXo packs together echo Press 3 to exit echo. echo Option 1 should be used if you need to reset the pack to it's original echo settings or if you are updating to a new version. This option is also used when echo you want to install this pack to the folder you launched setup from and as part echo of this process will merge the pack in with the current LaunchBox install. echo. echo Option 2 should be used when you have multiple eXo packs and you wish echo to have them all in the same LaunchBox instance. Merging will bring projects echo *into* the folder you ran this from. For example, if you already have eXoDOS echo and would like to merge eXoWin3x into it, you would run the setup file from echo the eXoDOS folder, and then choose this option. You will then be prompted to echo point to the folder you wish to merge IN to this installation. echo. echo. .\eXo\util\choice /C:123 /N Please Choose: if errorlevel = 3 goto end if errorlevel = 2 goto merge if errorlevel = 1 goto a1 :merge cls echo. echo Merging packs is an optional process which allows you to have multiple eXo projects in a single echo instance of LaunchBox. Any eXo project released after 2022 is compatible. echo. echo Merging allows you to browse all of the games from various packs at once. eXo%pack% will be the parent echo project, and all projects you choose to merge will be copied into it. Your original files will echo remain intact. Once a merge is complete, you may remove the other projects folder or retain it if echo you wish to keep seeding it. echo. echo -=WARNING=- echo ________________________________________________________________________________________________________ echo ^|If you wish to merge your eXo projects with an existing Pre-2022 eXoProject or Non-eXoProject LaunchBox^| echo ^|setup, you should follow the step by step process that is outlined on the RetroeXo Youtube channel or ^| echo ^|the pinned message in our Discord server ^| echo ^|_______________________________________________________________________________________________________^| echo. echo In order to have a successful merge, you must have one of the other eXo projects already downloaded. echo. echo Please be sure you have enough space on your target drive (the drive you ran this from)! echo If you aren't sure, this process will calculate the needed space for you once you select a project. echo. echo IMPORTANT: Please note that you can only merge one pack at a time. If you wish to merge more than 2 eXo echo projects, please re-run this setup once it is done. Once it sees the parent pack has been installed, it echo will prompt you and ask if you would like to add a new pack. echo. echo Would you like to continue with the merge process? .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto merge2 :merge2 set orig=%pack% echo off cls echo. echo Next you will be prompted to choose the project folder you wish to merge into eXo%pack%. echo. echo If you have already setup the project, this will be the folder LaunchBox.exe resides in. echo. echo If you have not setup the project, this will be the folder the manual.pdf and setup batch file are in. echo. echo Note: Please be aware that after you select the folder, there may be a few moments while it scans echo the folder. echo. pause :getfolder setlocal set "psCommand="(new-object -COM 'Shell.Application')^ .BrowseForFolder(0,'Please choose a folder.',0,0).self.path"" for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I" setlocal enabledelayedexpansion endlocal for /F "usebackq tokens=1" %%i in (`powershell -c "\"{0}\" -f ((Get-ChildItem -Recurse '%folder%' | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum )"`) do set bullet=%%i for /F "usebackq tokens=1" %%i in (`powershell [Int]^(%bullet%/1024^)`) do set bullet=%%i for /F "usebackq tokens=1" %%i in (`powershell [Int]^(%bullet%/1024^)`) do set bullet=%%i for /F "usebackq tokens=1" %%h in (`powershell %FreeSpace%/1024`) do set FreeSpace=%%h for /F "usebackq tokens=1" %%h in (`powershell [Int]^(%FreeSpace%/1024^)`) do set FreeSpace=%%h for /F "usebackq tokens=1" %%h in (`powershell %FreeSpace%-%bullet%`) do set LeftSpace=%%h set unitB=MB set unitLS=MB if %FreeSpace% gtr 1000 ( for /F "usebackq tokens=1" %%h in (`powershell [Int]^(%FreeSpace%/1024^)`) do set FreeSpace=%%h set unitFS=GB ) if %bullet% gtr 1000 ( for /F "usebackq tokens=1" %%i in (`powershell [Int]^(%bullet%/1024^)`) do set bullet=%%i set unitB=GB ) if %LeftSpace% gtr 1000 ( for /F "usebackq tokens=1" %%h in (`powershell %FreeSpace%-%bullet%`) do set LeftSpace=%%h set unitLS=GB ) set target=%folder:~0,2% cd /d %folder% if not exist .\CONTENT\ goto failed cd content FOR /F "TOKENS=*" %%A IN ('DIR /B "*" /A-D') DO IF /I [%%~nxA]==[%%~nA] goto yep cd .. goto failed :yep rem cd content setLocal EnableDelayedExpansion cd content set "marker=*." for /f "tokens=* delims= " %%a in ('Dir /b /a:-d "%marker%"') do ( set /a Z+=1 ) cd .. setLocal DisableDelayedExpansion if %Z% GTR 1 goto :mergemulti if %Z% EQU 1 goto :mergesingle if %Z% LSS 1 goto :failed :mergemulti if %var% == %folder% ( set mergename=%pack% set pack=Project ) goto cont6 :mergesingle cd content for %%f in (*.) do set mergename=%%f cd .. if %orig%==%mergename% goto failed2 if %bullet% gtr %FreeSpace% goto failed3 :cont6 cd %var% cls echo. echo You have selected to merge the eXo%mergename% project with eXo%pack%. echo. echo Your target drive ^(%Current%\^) has %FreeSpace%%unitFS% free echo eXo%mergename% uses up %bullet%%unitB% echo You will have %LeftSpace%%unitLS% left on this drive after installing echo. echo Note: This is before the pack is extracted. Please ensure there is enough echo space available for this. echo. echo Would you like to continue? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto tryagain If errorlevel = 1 goto merge5 :tryagain cls echo. echo Would you like to select a different project? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto getfolder :failed cd /d %var% cls echo. echo Error echo. echo The folder you chose was not a valid eXo project folder. echo Please remember, the folder must be a recent eXo Project echo for this process to work. echo. echo Would you like to try again? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto getfolder :failed2 cd /d %var% cls echo. echo Error echo. echo Either a valid folder was not chosen or you chose the same folder echo that you are currently setting up. Please note that you can not echo merge eXo%pack% with itself. That would cause an infinite loop which echo would in turn cause a miniature black hole to form inside of your echo CPU. As it feeds its insatiable appetite, it will quickly grow. echo Soon, the entire world will be nothing but a compressed mass the echo size of a pin head. All because you can't read directions. echo. echo Would you like to try again? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto getfolder :ask cls echo. echo Would you like to continue installing eXo%pack% by itself? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto install :failed3 cd /d %var% cls echo. echo %Current%\ has %FreeSpace%%unitFS% free echo %folder% uses up %bullet%%unitB% echo You do not have enough free space on the target drive. echo. echo Would you like to continue installing eXo%pack% by itself? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto install :a1 cd exo\util if not exist util.zip unzip.exe -o -q *.zip CHOICE.EXE if exist util.zip unzip.exe -o -q util.zip CHOICE.EXE cd .. cd .. cls echo. echo Would you like to install eXo%pack% by itself, or would you like to merge it with echo another eXo project? echo. echo For example, if you have downloaded both eXoDOS and eXoWin3x, they can be combined into echo a single instance so that you may browse games from both packs in the same LaunchBox setup. echo This process can be done with any eXo project released from 2022 onwards. echo. echo Choose M for more information on merging. echo. echo. .\exo\util\choice /C:AM /N [A]lone or [M]erge If errorlevel = 2 goto merge If errorlevel = 1 goto install :merge5 cd %var% set merge=true if %var% == %folder% ( goto continue ) cls echo. echo Would you like to Copy the project files or, or Move them? echo. echo If eXo%pack% and eXo%mergename% are on the same drive, then moving will be *much* echo faster, however you will no longer have a separate copy of eXo%mergename%. echo. echo Whether the files are on the same drive or not, copying will take quite a while. echo. echo If you would like to quit and move your files manually, you may exit now. echo. .\exo\util\choice /C:CMX /N [C]opy, [M]ove, or e[X]it If errorlevel = 3 goto end If errorlevel = 2 goto move If errorlevel = 1 goto copy :move echo. echo Moving Files.... echo. move %folder%\*.* %var% move %folder%\content\*data.zip %var%\content\ move %folder%\content\*. %var%\content\ cd /d %folder% cd eXo for /F "delims=" %%a in ('dir /A:D /B') DO ( if not %%a==util move %folder%\exo\%%a %var%\eXo\ ) cd util move util*.zip %var%\eXo\util\ cd .. cd .. cd %var% cls echo. echo. echo. echo Files successfully copied from eXo%pack%. echo You may delete the old folder if you wish. Any files left behind echo are not needed. echo. echo Installation will now begin. echo. rem if %exist%==true goto packinstall goto checks :copy echo. echo Copying Files.... echo. copy %folder%\*.* %var% copy %folder%\content\*data.zip %var%\content\ copy %folder%\content\*. %var%\content\ copy %folder%\content\LaunchBox.zip %var%\content\LaunchBox.zip xcopy %folder%\eXo\ %var%\eXo\ /s /y echo. echo. echo. echo Files successfully copied from eXo%mergename%. echo Installation will now begin. echo. pause if %exist%==true goto packinstall goto checks :install cls echo. echo Welcome to eXo%pack%. This setup will extract the necessary files to use the project echo with LaunchBox. If you have an existing LaunchBox setup (a non eXo project one) you echo would like to merge with, go ahead and run this setup and then check the section in echo the manual on how to combine files. echo. echo Setup will now check to make sure you have the necessary files. echo. pause :checks if not exist .\eXo\util\util*.zip ( echo. echo ERROR echo. echo You are missing the util file. This file contains the emulators, along with several echo utilities required to run the games included with this pack. echo. echo The file resides in the .\eXo\util\ folder echo Please make sure this file has been downloaded before proceeding with setup. echo. echo Exiting setup pause goto end ) if not exist .\Content\!%pack%metadata.zip ( echo. echo ERROR echo. echo You are missing the !%pack%metadata.zip file. Without this, the entire pack is unplayable. echo This file contains the actual launch files and configuration files need to play the games. echo Please download this file and then re-run setup. echo. echo Exiting setup pause goto end ) if not exist .\Content\LaunchBox.zip ( echo. echo ERROR echo. echo You are missing the LaunchBox.zip file. Without this, you will have no front end. echo. echo If you plan to use a different front end or no front end at all, you can choose echo to continue. echo. goto check ) if not exist .\Content\XO%pack%Metadata.zip ( echo. echo ERROR echo You are missing the XO%pack%Metadata.zip file. Without this LaunchBox will not run properly. echo This file contains the manuals, xml, and image data LaunchBox needs. echo. echo If you plan to use a different front end or no front end at all, you can choose echo to continue. echo. goto check ) goto verified :check echo. echo Do you want to continue setup without support for LaunchBox? echo. echo Note: Launchbox is the front end. Without it, you will simply have a collection echo of %pack% zip files and a !%pack% folder full of config files and game launch files. echo Do not use this method if you aren't 100% sure of what you are doing. echo. .\exo\util\choice /C:YN /N (Y)es or (N)o If errorlevel = 2 goto end If errorlevel = 1 goto skip :verified cls echo. echo All files verified. echo. echo Beginning setup echo. echo Step 1 echo Extracting LaunchBox files echo Estimated Time: Less than 5 minutes. echo. .\eXo\util\unzip -o -q .\Content\LaunchBox.zip -d .\ cls set x64=false rem wmic os get osarchitecture > oscheck.txt rem systeminfo | findstr /C:"System Type" > oscheck.txt systeminfo > oscheck.txt for /F %%a in ('findstr /C:x64 oscheck.txt') do set x64=true del oscheck.txt if %x64%==false echo. if %x64%==false echo This machine is not reporting itself as 64 bit. LaunchBox, the front end, if %x64%==false echo will only run on a 64 bit machine. if %x64%==false echo. if %x64%==false pause if %x64%==false goto skip_lb set dotnet=false dotnet --list-runtimes > dotnet.txt for /F "delims=" %%a in ('findstr /C:"Microsoft.NETCore.App 3.1" dotnet.txt') do set dotnet=true del dotnet.txt if %dotnet%==true goto continue :dotnet echo. echo It appears your machine does not have Microsoft .NET Core 3.1 installed. echo This is a required dependency for LaunchBox. Without it, LaunchBox will fail to start. echo Would you like to install it now? echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto skip_lb If errorlevel = 1 goto installdotnet :skip_lb echo. echo Installation will now continue, but please be aware that the front-end will not echo be functional on this machine. You may still run the games manually by navigating echo to the games launch folder and running the launch file manually. These can be found echo in: echo .\eXo\eXo%pack%\!%pack%\ echo. echo Apart from launching the games, the front end also contains metadata, screenshots, echo manuals, box scans, game music, strategy guides, code wheels, and lots of other echo interesting things for each game. It is highly recommended that you take the necessary echo steps to get the frontend working. echo. pause goto continue :installdotnet echo. echo Please wait while Microsoft .NET Core 3.1 installs... echo Installation will continue once it finishes echo. .\Content\Dependencies\dotnet-sdk-3.1.421-win-x64.exe /install /quiet /norestart :continue cls echo. echo Step 2 echo Extracting LaunchBox Metadata echo Estimated Time: 15-20 minutes. echo. pause .\eXo\util\unzip -o .\Content\XO%pack%Metadata.zip -d .\ if %merge%==true .\eXo\util\unzip -o .\Content\XO%mergename%Metadata.zip -d .\ cls echo. echo Step 3 echo Extracting Video Previews and Magazines echo Estimated Time: 5-10 minutes. echo. echo Note: If no video previews exist for this platform, this step will be skipped. echo. pause if exist .\content\video*.zip .\eXo\util\unzip -o .\Content\Video*.zip -d .\ if exist .\content\mag*.zip .\eXo\util\unzip -o .\Content\Mag*.zip -d .\eXo\ cls echo. echo Step 4 echo Extracting Game Configuration Files echo Estimated Time: 20-25 minutes. echo. pause IF %EXIST% == false goto :skip :cleanup cd exo cd util copy unzip.exe .. for /f %%F in ('dir /b /a-d ^| findstr /vile ".zip .bat"') do del "%%F" for /f %%H in ('dir /A:D /B') do rmdir %%H /s /q copy ..\unzip.exe .\ del ..\unzip.exe cd .. cd .. :skip if exist .\eXo\eXo%pack%\!%pack% rd .\eXo\eXo%pack%\!%pack% /s /q .\eXo\util\unzip -o .\Content\!%pack%metadata.zip if %merge%==true .\eXo\util\unzip -o .\Content\!%mergename%Metadata.zip -d .\ cd eXo if %merge%==true .\util\unzip -o .\util\util%mergename%.zip -d .\util .\util\unzip -o .\util\util*.zip -d .\util if exist .\util\OPT*.zip .\util\unzip -o .\util\OPT*.zip -d .\util\ if exist .\util\EXT*.zip .\util\unzip -o .\util\EXT*.zip if exist .\util\deprotect.zip del .\util\deprotect.zip del .\util\OPT*.zip del .\util\EXT*.zip if not exist .\util\scummvm.ini goto skipsvm if not exist %USERPROFILE%\AppData\Roaming\ScummVM\scummvm.ini ( md %USERPROFILE%\AppData\Roaming\ScummVM copy .\util\scummvm.ini %USERPROFILE%\AppData\Roaming\ScummVM\scummvm.ini ) :skipsvm cd .. goto xml :skipxtract goto xml :xml cls echo. echo Would you like to remove access to Adult games from LaunchBox? echo. echo Note: In this case, "Adult" refers to games with nudity rather than violence. echo Note 2: If they have previously been removed, choosing NO here will restore them. echo. .\eXo\util\choice /C:NY /N (Y)es or (N)o If errorlevel = 2 goto YESA If errorlevel = 1 goto NOA :NOA copy .\xml\ALL\*.xml .\Data\Platforms\ copy ".\xml\*.xml" ".\Data\Platforms\*.xml" copy .\xml\Playlists\*.* .\Data\Playlists\ cd xml call merge_parents call merge_platforms cd .. copy .\xml\Platforms.xml .\Data\ copy .\xml\Parents.xml .\Data\ goto screen :YESA copy .\xml\family\*.xml .\Data\Platforms\ copy ".\xml\*.xml" ".\Data\Platforms\*.xml" copy .\xml\Playlists\*.* .\Data\Playlists\ cd xml call merge_parents call merge_platforms cd .. copy .\xml\Platforms.xml .\Data\ copy .\xml\Parents.xml .\Data\ goto screen :screen cls echo. echo Would you like [F]ullscreen or [W]indowed mode to be the default setting? echo. .\eXo\util\choice /C:FW If errorlevel = 2 goto WIN If errorlevel = 1 goto FULL :FULL cd eXo cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 fullscreen=false fullscreen=true .\emulators\dosbox\%%a ) if exist ".\util\WIN.SEL" del ".\util\WIN.SEL" echo > ".\util\FULL.SEL" cd .. goto res :WIN cd eXo cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 fullscreen=true fullscreen=false .\emulators\dosbox\%%a ) if exist ".\util\FULL.SEL" del ".\util\FULL.SEL" echo > ".\util\WIN.SEL" cd .. goto res :RES cd eXo if exist .\util\SML.SEL del .\util\SML.SEL if exist .\util\MED.SEL del .\util\MED.SEL if exist .\util\LRG.SEL del .\util\LRG.SEL cls echo. echo What is your primary desktop resolution? echo [L]arge (4k) echo [M]edium (1080) echo [S]mall (less than 1080) echo. echo Note: This will be used to calculate the window size in windowed mode. echo. .\util\choice /C:LMS if errorlevel = 3 goto small if errorlevel = 2 goto medium if errorlevel = 1 goto large :large cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 windowresolution=640x480 windowresolution=2560x1920 .\emulators\dosbox\%%a .\util\ssr 0 windowresolution=1280x960 windowresolution=2560x1920 .\emulators\dosbox\%%a ) echo > ".\util\LRG.SEL" goto ratio :medium cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 windowresolution=640x480 windowresolution=1280x960 .\emulators\dosbox\%%a .\util\ssr 0 windowresolution=2560x1920 windowresolution=1280x960 .\emulators\dosbox\%%a ) echo > ".\util\MED.SEL" goto ratio :small cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 windowresolution=1280x960 windowresolution=640x480 .\emulators\dosbox\%%a .\util\ssr 0 windowresolution=2560x1920 windowresolution=640x480 .\emulators\dosbox\%%a ) echo > ".\util\SML.SEL" goto ratio :ratio cls echo. echo Would you like to enable Aspect Correction for all games? echo. echo Choosing Yes will attempt to preserve the game's original format. In fullscreen echo mode this will introduce black bars on the sides. echo. echo Choosing No will stretch the image to fit your monitor. echo. echo Choosing Yes is useful for widescreen monitors which cause stretching or distortion. echo. .\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto aspectN If errorlevel = 1 goto aspectY :aspectY cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 aspect=false aspect=true .\emulators\dosbox\%%a ) if exist ".\util\ANO.SEL" del ".\util\ANO.SEL" echo > ".\util\AYES.SEL" goto ini :aspectN cls for /F %%a in ('dir .\emulators\dosbox\opt*.conf /B') DO ( .\util\ssr 0 aspect=true aspect=false .\emulators\dosbox\%%a ) if exist ".\util\AYES.SEL" del ".\util\AYES.SEL" echo > ".\util\ANO.SEL" goto ini :packinstall cls echo. echo Adding eXo%mergename% to existing eXo%pack% install. echo. echo Extracting Metadata echo Estimated Time: 10-20 minutes. echo. .\eXo\util\unzip -o .\Content\XO%mergename%Metadata.zip -d .\ echo. echo Extracting Game Configuration Files echo Estimated Time: 20-25 minutes. echo. pause .\eXo\util\unzip -o .\Content\!%mergename%Metadata.zip -d .\ cd exo .\util\unzip -o .\util\util%mergename%.zip -d .\util if exist .\util\OPT*.zip .\util\unzip -o .\util\OPT*.zip -d .\util\ if exist .\util\EXT*.zip .\util\unzip -o .\util\EXT*.zip del .\util\OPT*.zip del .\util\EXT*.zip cd .. goto xml :ini cd .. echo %cd%\launchbox.exe > eXo.bat .\exo\util\B2E /bat eXo.bat /exe eXo%pack%.exe /icon .\exo\util\exodos.ico del exo.bat .\ThirdParty\VLC\x64\vlc.exe --play-and-exit .\eXo\util\blow.mp3 cls echo. echo eXo%mergename% is now setup. Enjoy! echo Run "eXo%pack%.exe" to start. echo. cls echo. echo Would you like to create an icon on your desktop? echo Note: This will fail if your windows script hosting is disabled. echo. .\exo\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto end If errorlevel = 1 goto shortcut :shortcut set pathlink=%cd% set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs" echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT% echo sLinkFile = "%USERPROFILE%\Desktop\eXoAppleIIGS.lnk" >> %SCRIPT% echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT% echo oLink.TargetPath = "%pathlink%\LaunchBox.exe" >> %SCRIPT% echo oLink.IconLocation = "%pathlink%\eXo\util\exodos.ico" >> %SCRIPT% echo oLink.Save >> %SCRIPT% cscript /nologo %SCRIPT% del %SCRIPT% :end