Author Topic: DOSBox.Windows.95B.OSR2.DirectX6.1.Portable-HcH  (Read 85 times)

0 Members and 1 Guest are viewing this topic.

Offline Stephan

  • TechKnow Owner
  • Administrator
  • Uber Member
  • *****
  • Thank You
  • -Given: 3697
  • -Received: 1128
  • Posts: 9634
  • Karma: +2278/-106
DOSBox.Windows.95B.OSR2.DirectX6.1.Portable-HcH
« on: August 16, 2017, 10:06:48 PM »
DOSBox.Windows.95B.OSR2.DirectX6.1.Portable-HcH


About:
Thanks to this script, playing a game in Windows 95 through DosBox was never this easy!

Due file only limitations of Dosbox's internal copy function there is no subdirectory copy support, and we want that! This synchronizes the content of "%CD%\Game" to a Windows 95 HDD mounted in Dosbox, making the data available inside Windows once it's booted, because once Windows is booted, we will loose connection to the local filesystem. This meant someone usually uses a virtual driver or IMG editor of some sort to add new files/games/programs to a Windows 95 DosBox. This trick uses DosBox to synchronize the files inside the \Game directory with C:\Game inside Windows 95, using a expanded copy script to support subdirectories. The script will be generated by your local system in \Game in DosBox's acceptable commands, then it will boot to Windows.

Code: (Windows95-FILECOPY.bat) [Select]
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
PUSDH "%~dp0"

REM :: Due file only limitations of Dosbox's internal copy function there is no subdirectory copy support, and we want it! ::
REM :: This synchronizes the content of "%CD%\Game" to a Windows 95 HDD mounted in Dosbox ::
REM :: Thanks to the script, playing a game in Windows 95 was never this easy:
REM :: Step 1. Extract game to "%CD%\Game"
REM :: Step 2. Start "Windows95-FILECOPY.bat". The script generates a list of directories to create and files to copy from \Game.
REM :: Step 3. Automatically the script will start Dosbox and launch the generated script, it's now copying from the \Game dir to the Win95 HDD
REM ::         This is important, if we start Windows 95, we'll loose the D: drive because it's mounted through Dosbox, now it will copy the content to that HDD so we can use it in Windows 95!

SET OUTPUT=Game\filecopy.bat
if exist %OUTPUT% del /f %OUTPUT%

REM :: Get local directory name in 8.3 format to strip later on from the full filepaths of the files to copy ::
FOR /F "tokens=*" %%A IN ('echo %CD%\Game') DO set FIND=%%~sA

REM :: Get a sub directory list to create the directories before copying ::
FOR /F "tokens=*" %%A IN ('dir /ad /s /b .\Game\*.*') DO (echo Found: .%%~sA
set replace=
set line=%%~sA
set newline=!line:%find%=%replace%!
echo mkdir c:\Game!newline!>>!OUTPUT!)

REM :: Get filenames of the files to copy in 8.3 format ::
FOR /F "tokens=*" %%A IN ('dir /a-d /s /b .\Game\*.*') DO call :THETRICK %%~sA

REM :: Now here's the trick, this removes the directories before the main path so the simple 16bit copy command will also copy the subdirectories ::
:THETRICK
set replace=
if [%1]==[] start "DOSBox" DOSBox.exe -noconsole -conf Windows95-FILECOPY.conf
for %%F in (%1) do (set "line=%%F"
set newline=!line:%find%=%replace%!
echo Found: .!newline!
echo copy /y d:!newline! c:\Game!newline!>>!OUTPUT!)

Code: (Windows95-FILECOPY.conf Autoexec lines) [Select]
imgmount c: hdd-1gb-c.img -size 512,63,64,520 -fs fat
mount d .\Game
call d:\filecopy.bat
boot -l c

Usage:
Step 1. Extract game to "%CD%\Game"
Step 2. Start "Windows95-FILECOPY.bat". The script generates a list of directories to create and files to copy from \Game.
Step 3. Automatically the script will start Dosbox and launch the generated script, it's now copying from the \Game dir to the Win95 HDD. This is important, if we start Windows 95, we'll loose the D: drive because it's mounted through Dosbox, now it will copy the content to that HDD so we can use it in Windows 95!

Details:
* Sound Blaster (with updated Win95 driver)
* S3 VGA (with updated Win95 driver)
* DirectX 6.1
* 64MB RAM

Games tested:
* Monster Truck Madness
* Doom95
* Beavis & Butthead: Virtual Stupidity
* Fury 3

Download:
DOSBox.Windows.95B.OSR2.DirectX6.1.Portable-HcH.rar (134.5 MB)
Full package, including prepared 1GB FAT HDD IMG, Windows 95B OSR2, DirectX6.1, copy scripts and DOSBox v0.74
« Last Edit: August 16, 2017, 10:21:53 PM by HardcoreHacker »

 

Powered by EzPortal