News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

stopping assembler output popping up in new window

Started by bobl, May 16, 2013, 03:23:01 AM

Previous topic - Next topic

bobl

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.

Vortex

Hi bobl,

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

.
.
:TheEnd

pause


Replace pause with REM pause.

bobl

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!

bobl


Vortex