if '#1' != '' goto checkargs echo -e No device specified exit %checkargs if #1 = sfda goto begin if #1 = sfdb goto begin if #1 = sfdc goto begin if #1 = sfdd goto begin if #1 = fda goto error if #1 = fdb goto error if #1 = fdc goto error if #1 = fdd goto error if #1 = hd0 goto error if #1 = hd1 goto error if #1 = hd2 goto error echo -e Illegal argument: '"#1"' exit %error echo -e Newdisk can be used only to copy this disk to another 5" disk echo -e Use Update to transfer files to an 8" disk or a hard disk exit %begin echo -n Now creating new disk #1 ... mode -pause init makfs #1 if #1 = hd0 goto newdisk if #1 = hd1 goto newdisk if #1 = hd2 goto newdisk wboot #1 %newdisk create /drive mount #1 /drive cptree / /drive unmount #1 del /drive mode pause echo echo Finished creating disk #1