silvercover Posted May 31, 2005 Share Posted May 31, 2005 Hi folks: I want to know how I can make .EXE file from .ASM file using MASM.EXE in command prompt?You know when we want to make exe using MASM,first we go to folder which masm.exe reside in it and then run masm.exe with .ASM file name after it which will finally look like this: MASM MyAssemblyFile.asm (causes to create MyAssemblyFile.obj file) After that we need to run linker in order to complete making .exe proccess using MASM.Again we go to folder which link.exe reside in it and run it with MyAssemblyFile.OBJ after it which will finally look like this: (I assume that linker is beside masm.exe) LINK MyAssemblyFile.OBJ So,How can I do this task using AutoIt? Thanks in advance. The more I learn the less I know! Link to comment Share on other sites More sharing options...
/dev/null Posted May 31, 2005 Share Posted May 31, 2005 (edited) Hi Silvercover, you are able to program in assembler. Cool i really like that. But why is it then so hard for you to write a DOS batch script? $masm_includes = "C:\masm\includes" $masm_opts = "/A /Z /I" & $masm_includes $masm = "c:\masm\masm.exe " $linker = "c:\masm\link.exe " $asm_src = "C:\projects\linux-rules-the-world.asm" $asm_obj = "C:\projects\linux-rules-the-world.obj" $masm_command = $masm & " " & $masm_opts & " " & $asm_src & "," & $asm_obj $link_command = $linker & " " & $asm_obj RunWait(@ComSpec & " /c " & $masm_command) RunWait(@ComSpec & " /c " & $link_command) Cheers Kurt Edited May 31, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now