Skip to content

chaozznl/SplitToFloppies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SplitToFloppies

by Elmar Wenners / chaozz.nl / github.com/chaozznl

A PowerShell tool that compresses a folder, splits it into floppy sized chunks, and generates FAT12 IMG files suitable for vintage PCs with Gotek floppy emulators.

screenshot


Features

  • Creates a ZIP archive from any folder
  • Splits the ZIP into floppy‑sized binary chunks
  • Generates FAT12 floppy images for each chunk
  • Automatically copies each chunk into its own IMG file
  • Supports all standard PC floppy formats (160 KB to 2.88 MB)
  • Compatible with Gotek, FlashFloppy

Requirements

  • Windows with PowerShell
  • mformat.exe and mcopy.exe from mtools (included in this repository)
  • A valid mtools.conf (included)
  • pkunzip or other unzip tool on the target system

Supported Floppy Sizes

Size (KB) Tracks Heads Sectors
160 40 1 8
180 40 1 9
320 40 2 8
360 40 2 9
720 80 2 9
1200 80 2 15
1440 80 2 18
2880 80 2 36

Usage

Syntax

SplitToFloppies.ps1 <floppySizeKB> <sourceFolder> <outputFolder>

Example

.\SplitToFloppies.ps1 720 g:\doom8088\cga g:\doom8088\cga_split

Example Output

PS G:\mtools> .\SplitToFloppies.ps1 720 'G:\images\MS-DOS Software\GAMES\doom8088\VGA\' 'G:\images\MS-DOS Software\GAMES\doom8088\VGA_split\'
>> Step 1: Creating ZIP from folder...
>> Step 2: Splitting ZIP file into chunks...
>> Step 3: Creating UNSPLIT.BAT...
>> Step 4: Creating IMG files...
   - Creating DISK001.img...
   - Creating DISK002.img...
   - Creating DISK003.img...
   - Creating DISK004.img...

>> Ready.
>> 4 floppy images created in: G:\images\MS-DOS Software\GAMES\doom8088\VGA_split\
>> UNSPLIT.BAT added to last floppy image.
PS G:\mtools>

Installing on the Target PC

  1. Mount the first IMG on a Gotek.
  2. On the target PC, copy the contents into a working folder:

copy a:\*.* .

  1. Mount the next IMG and repeat.
  2. After all chunks are copied, unsplit the result by typing:

unsplit.bat

This will recreate the OUTPUT.ZIP file on the target system.

  1. Extract using PKUNZIP:

pkunzip bigzip.zip

About

A PowerShell tool that compresses a folder, splits it into floppy‑sized chunks, and generates FAT12 IMG files suitable for vintage PCs with Gotek floppy emulators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors