#!/bin/bash # Linux script for associating files to a DosEmu/FreeDos program # edit to change ~/MYDOS to where DosEmu D: drive is located # args directory must already exist under this directory # xdosemu target must be in a path directory (edit autoexec.bat) # or in the default DosEmu/FreeDos startup drive. # Make copies of this and edit to run other batches/programs. # Note - file passed must be in 8.3 format - if this isn't ok but # ok if the filename is always the same, then change bn=temp.fil bn=`basename $1` cp -f $1 ~/MYDOS/args xdosemu "test800b d:\\args\\$bn" rm -f ~/MYDOS/args/$bn