批处理制作汇编语言源程序自动到可执行文件
@echo off&&title code made by 小勇12cls
echo this programe make "*.asm" into "*.exe"
echo when error is found ,you can revise it.
for /l %%i in (1,1,3) do echo.
if "%1"=="" goto usage
if "%1"=="/?" goto usage
if "%1"=="help" goto usage
pause
masm %1
if errorlevel 1 pause & edit %1
set dirp=%0
set p=%dirp:"=%
set lujing=%p:asmtoexe.bat=%
move *.obj %lujing%
set m="%1"
set l=%m:"=%
set str=%l:asm=obj%
echo %str%
pause
if exist %str% link16 %str%
move *.exe %lujing%
del %str%
goto eof
:usage
cls
echo usage: asmtoexe + file (include path)
echo default filename asmtoexe.bat
echo notice: please don't revise filename or can't run.
:eof
pause
asmtoexe.rar
(262.61 KB)