On antecedent section, we accept 2 fresh files: migpro01.asm and migpro01.res.
These 2 files are appropriate for accumulation so the aftereffect is the fresh migpro application..
Now, accessible the makeit.bat book with Notepad..
Here is the command in the accumulation file..
Code:
@echo off
\masm32\bin\ml /c /coff /Cp migpro.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro.obj rsrc.res
we charge to adapt it, so the fresh command will be like this..
Code:
@echo off
\masm32\bin\ml /c /coff /Cp migpro01.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro01.obj migpro01.res
Now we can assassinate the accumulation book to abridge the migpro..
Just bifold bang on the makeit.bat file, and the masm32 will abridge the project, and the aftereffect is a fresh migpro appliance which the filename is migpro01.exe
If u success to abridge it, again the attending of ur command alert window will be like this:
Code:
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: migpro01.asm
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
I anticipate the abundance way in active the accumulation book is active it manually from the command prompt, so we can watch the advance while compiling..
If u assassinate the accumulation book by double-clicking on it, again as anon as it finish, the command alert window will abutting automatically..
We can't see the advance or alike the abortion which ability occur..
To assassinate the accumulation book manually blazon cmd on Run chat box from Start Menu..
Then a command alert window will be like this:
Code:
C:\Documents and Settings\yourname\>
change it to ur alive binder by accounting cd c:\migpro, like this:
Code:
C:\Documents and Settings\yourname\>cd c:\migpro
and hit ENTER/RETURN key..
now the alert has afflicted to ur alive folder, like this:
Code:
C:\migpro>
Or u can accomplish a anthology access so u can anon run a command alert by right-clicking ur alive folder..
Just archetype this calligraphy beneath and adhesive into Notepad..
Save the book with reg extension, for archetype commandprompt.reg
Code:
Windows Anthology Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\command prompt]
@="Command Alert from here.."
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\command prompt\command]
@="Cmd.exe /k pushd %L"
After u save the file, again run it by double-clicking on the file..
After the anthology key has auspiciously alloyed into the anthology arrangement database, u can appropriate beat any binder from windows charlatan and accept Command Alert from here..
Right bang ur alive binder and accept Command Alert from here.. and u will be in ur alive binder directly..
Next footfall is accounting makeit in command prompt, like this:
Code:
C:\migpro>makeit
u can watch the advance with this way..
What if u appetite to abridge ur activity files in one shot?
U can adapt the accumulation book so the masm32 will abridge all ur activity files at once..
Let's say, u accept adored 10 migpro.asm and 10 migpro.res files..
The asm antecedent code:
migpro01.asm
...
...
migpro10.asm
The assets files:
migpro01.res
...
...
migpro10.res
Then the command in the accumulation book will be like this:
Code:
@echo off
\masm32\bin\ml /c /coff /Cp migpro01.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro01.obj migpro01.res
\masm32\bin\ml /c /coff /Cp migpro02.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro02.obj migpro02.res
\masm32\bin\ml /c /coff /Cp migpro03.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro03.obj migpro03.res
\masm32\bin\ml /c /coff /Cp migpro04.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro04.obj migpro04.res
\masm32\bin\ml /c /coff /Cp migpro05.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro05.obj migpro05.res
\masm32\bin\ml /c /coff /Cp migpro06.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro06.obj migpro06.res
\masm32\bin\ml /c /coff /Cp migpro07.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro07.obj migpro07.res
\masm32\bin\ml /c /coff /Cp migpro08.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro08.obj migpro08.res
\masm32\bin\ml /c /coff /Cp migpro09.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro09.obj migpro09.res
\masm32\bin\ml /c /coff /Cp migpro10.asm
\masm32\bin\link /SUBSYSTEM:WINDOWS /LIBPATH:\masm32\lib migpro10.obj migpro10.res
Then blazon makeit in the command alert window..
Code:
C:\migpro>makeit
As u hit ENTER/RETURN key, again masm32 will do the rest..
There u accept as abounding migpro appliance as u like..
And all of them are in 1 folder..
And don't balloon to alike the appropriate ini book for anniversary of migpro u've saved..
0 komentar
Post a Comment