呵呵,这个命令您试了吗?我感觉这样是不对的。
看看mkboot。bat这个批处理命令吧!
@echo off
if "%1" == "" goto usage
if "%2" == "" goto usage
vxsys %1
if errorlevel 1 goto sysfail
if exist %1bootrom.sys del %1bootrom.sys
rem Check files with known names
rem Customers using unique file names should make modifications below.
if "%2" == "bootrom.dat" goto omf
if "%2" == "bootrom" goto omf
if "%2" == "bootrom_uncmp" goto omf
if "%2" == "vxWorks_rom" goto omf
if "%2" == "bootrom.bin" goto binext
if "%2" == "bootrom_uncmp.bin" goto binext
if "%2" == "vxWorks_rom.bin" goto binext
echo Warning, Unrecognized file name %2. Assuming .bin extension.
:binext
copy %2 %1bootrom.sys
if errorlevel 1 goto copyfail
goto chkdsk
:omf
objcopypentium -O binary --gap-fill=0 %2 %1bootrom.sys
if errorlevel 1 goto omffail
:chkdsk
echo System tranferred. Checking %1BOOTROM.SYS is contiguous
echo chkdsk %1bootrom.sys
chkdsk %1bootrom.sys
goto end
:omffail
echo Failed to objcopy %2 to %1BOOTROM.SYS!
goto usage
:sysfail
echo Failed to install boot sector on drive %1!
goto usage
:copyfail
echo Failed to copy %2 to %1BOOTROM.SYS!
:usage
echo Usage: mkboot drive: bootfile (e.g. mkboot a: bootrom.bin)
echo Installs VxWorks boot sector on drive, and copies over bootfile
echo as boot image BOOTROM.SYS. If the bootrom file is named bootrom.dat
echo as documented in older literature, then the file is assumed to be
echo an object module and is converted to binary before copied.
echo Note: BOOTROM.SYS must be contiguous or the boot will fail. This can
echo be verified with CHKDSK.
:end