Here is my batch script to assemble and link my application:

R:\masm32\bin\ml /c /coff unknown.asm
R:\masm32\bin\polink /SUBSYSTEM:CONSOLE unknown.obj


I get the error:

Microsoft Windows XP 
(C) Copyright 1985-2001 Microsoft Corp.
R:\Programming\ASM>make

R:\Programming\ASM>R:\masm32\bin\ml /c /coff unknown.asm
The system cannot find the path specified.

R:\Programming\ASM>R:\masm32\bin\polink /SUBSYSTEM:CONSOLE unknown.obj
The system cannot find the path specified.


Any ideas why my console assemble and link script will not work?
Also, if I 'install' to a thumb drive, is MASM32 portable - does it install any libraries into a windows common files area, or is everything on the thumb drive that i selected when i 'installed'?

Thanks in advance ...
Posted on 2006-06-27 09:04:40 by edward2fn

Here is my batch script to assemble and link my application:

R:\masm32\bin\ml /c /coff unknown.asm
R:\masm32\bin\polink /SUBSYSTEM:CONSOLE unknown.obj


I get the error:

Microsoft Windows XP 
(C) Copyright 1985-2001 Microsoft Corp.
R:\Programming\ASM>make

R:\Programming\ASM>R:\masm32\bin\ml /c /coff unknown.asm
The system cannot find the path specified.

R:\Programming\ASM>R:\masm32\bin\polink /SUBSYSTEM:CONSOLE unknown.obj
The system cannot find the path specified.


Any ideas why my console assemble and link script will not work?
Also, if I 'install' to a thumb drive, is MASM32 portable - does it install any libraries into a windows common files area, or is everything on the thumb drive that i selected when i 'installed'?

Thanks in advance ...


If MASM32 "installs" to the "X" drive, then ideally, it should work. My suggestion would be to "install" it to the C: drive and copy the MASM32 folder to whatever drive you want. There is nothing special about the installer, it just decompresses and runs the batch files that are already in the folder.

If you are running the "make.bat" from the R: drive itself, you can even remove the "R:" part and see if that does any good.


@ECHO OFF
CLS
\masm32\bin\ml.exe /c /coff unknown.asm
\masm32\bin\polink.exe /SUBSYSTEM:CONSOLE unknown.obj
Posted on 2006-06-27 18:15:38 by SpooK
if the bat is in the same directory as masm, there's no need at all to use the directory location stuff, just call ml and polink without any directory structure. also, when specifying a file to assemble/link, make sure that if the file is in the same directory if you're not refering to it using a whole directory structure.

here's a nice place to learn more about writing Batch files (you can actually do quite a lot): http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html
Posted on 2006-06-27 21:20:49 by Bobbias