#!/bin/sh export dir=$(pwd) (cat <<"EOF" @echo off mount c $dir C:\ cd DOOMS DOOM exit EOF ) > run.bat (sleep 2; rm run.bat) & dosbox run.bat &