Click to See Complete Forum and Search --> : System variables for MASM


Dross
November 14th, 2006, 05:51 AM
Hi all,

I'm new to assembly programming - bought myself a book on x86 assembler and it came with a copy of MASM, but I'd like to compile programs from the command path (the main reason being I have another nice editor I like to use).
I've installed MASM and can compile & link an .asm file to get an .exe file from the command prompt, so long as I save the .asm file and compile it from the \bin directory that I've got MASM installed in.
What I'd like to do is have a separate directory I can save .asm files in, and set the system variables to point to the \bin directory so I can compile from the other directory where my .asm files are saved (like in java - you just set the classpath variable to point to the folder that contains javac.exe and java.exe and you can compile & run from anywhere).
Does anybody know how I can do this? Is it just a matter of defining more system variables?

Dross
November 15th, 2006, 05:59 AM
It's all okay - panic over! Worked out that all you've got to do is move ml.exe and link.exe to the directory you're compiling/linking from. Easy when you know how :p