This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
cb-legacy-dev/installers/dosboxw31/w31launcher.bat

21 lines
438 B
Batchfile
Raw Normal View History

2023-11-18 16:56:10 +00:00
@echo off
if exist "%~1" (
echo Startup directory: %~dp1
echo Executable name: %~nx1
echo Executing in DOSBox-X Win3.11...
cd "%~dp0"
dosbox-x.exe -c "MOUNT D: '%~dp1' " -c "C:\WINDOWS\WIN.COM D:\%~nx1 " -c "exit "
REM timeout /t 5
REM del /Q "%~dp1\launchit.cfg"
)
if not exist "%~1" (
echo This scripts will run given executable in Windows 3.11 inside DOSBox-X.
echo.
echo Usage:
echo w31launcher.bat "PathToExecutable.exe"
echo.
)