The MASM Forum

General => The Campus => Topic started by: bobl on May 16, 2013, 03:23:01 AM

Title: stopping assembler output popping up in new window
Post by: bobl on May 16, 2013, 03:23:01 AM
Hi
I'm using this

rem straight out of assmbl.bat in C:\masm32\bin that i think the masm32 editor uses
if exist %1.obj del %1.obj
if exist %1_omfd.obj del %1_omfd.obj
\masm32\bin\ml /c /coff %1.asm > asmbl.txt
if errorlevel 0 dir %1.* >> asmbl.txt
\masm32\tview.exe asmbl.txt


in a batch file i.e. with other commands both before and after
and am getting this

Assembling: my_masm1.asm

***********
ASCII build
***********

Volume in drive C has no label.
Volume Serial Number is 1C5D-3761

Directory of C:\my_delphi\my_cbuilder2006\proj8

15/05/2013  11:50               298 my_masm1.asm
15/05/2013  18:11               916 my_masm1.obj
               2 File(s)          1,214 bytes
               0 Dir(s)  130,321,326,080 bytes free

pop up in a separate window requiring me to close it.
Instead, I'd like this output to come up in the same console (as all the other stuff in the batch file does)
i.e. so that everything just happens in sequence without any user intervention.
If this possible...I'd be grateful for advice re how you do it.
Thank you in anticipation.
Title: Re: stopping assembler output popping up in new window
Post by: Vortex on May 16, 2013, 04:03:42 AM
Hi bobl,

For building console applications, open \masm32\bin\buildc.bat :

.
.
:TheEnd

pause


Replace pause with REM pause.
Title: Re: stopping assembler output popping up in new window
Post by: bobl on May 16, 2013, 05:09:11 AM
Thanks Vortex
I just realised that it was me who was creating that popup window with...

\masm32\bin\ml /c /coff %1.asm > asmbl.txt
if errorlevel 0 dir %1.* >> asmbl.txt
\masm32\tview.exe asmbl.txt


and that cutting it down to...

\masm32\bin\ml /c /coff %1.asm


eliminates the popup and need for user intervention.
Having said that i wasn't aware of buildc.bat so thank you for the direction.
I'll have a look at that!
Title: Re: stopping assembler output popping up in new window
Post by: bobl on May 16, 2013, 05:12:33 PM
Yes...that looks very helpful.
Thanks
Title: Re: stopping assembler output popping up in new window
Post by: Vortex on May 17, 2013, 03:40:56 AM
I am glad if I could help you.