if '#1' != '' goto checkargs echo -e No device specified exit %checkargs if #1 = fda goto begin if #1 = fdb goto begin if #1 = fdc goto begin if #1 = fdd goto begin if #1 = sfda goto begin if #1 = sfdb goto begin if #1 = sfdc goto begin if #1 = sfdd goto begin if #1 = hd0 goto begin if #1 = hd1 goto begin if #1 = hd2 goto begin echo -e Illegal argument: '"#1"' exit %begin echo -n Now creating new disk #1 ... mode -pause init makfs #1 wboot #1 %newdisk create /drive mount #1 /drive cptree / /drive unmount #1 del /drive mode pause echo echo Finished creating disk #1