I want to compile assembly code via double-clicking a batch file in the directory of my .asm file. The reason is because the NASM call has few parameters and I want to bypass this step each time.
I wrote a batch that works, but only if you double-click the NASM shortcut on the desktop (this calls nasmpath.bat and opens a command prompt window), and then type out the batch file and press enter in the opened (Windows 10) command prompt.
I attempted to make a batch that calls nasmpath.bat, then proceeds to automatically compile, but nothing happens.
Here's my batch file build.bat (not working):
call C:\Users\Nick\AppData\Local\bin\NASM\nasmpath.bat
del /Q foo.flp
nasm foo.asm -f bin -o foo.flp -l foo.lst
Also, here is nasmpath.bat:
@set path=C:\Users\Nick\AppData\Local\bin\NASM;%path%
@%comspec%