NASM - The Netwide Assembler

NASM Forum => Example Code => Topic started by: Clay on March 31, 2019, 07:29:15 AM

Title: How to add NASM to `Path` environment variable in Windows 10
Post by: Clay on March 31, 2019, 07:29:15 AM
How to add a folder to `Path` environment variable in Windows 10 (with screenshots)

https://stackoverflow.com/questions/44272416/how-to-add-a-folder-to-path-environment-variable-in-windows-10-with-screensho

Good Info. Enables you to call NASM from command line a old DOS shell and the new Windows Power Shell.
Title: Re: How to add NASM to `Path` environment variable in Windows 10
Post by: debs3759 on March 31, 2019, 12:17:08 PM
Cool, I hadn't realised (never tried) you could still do that. I don't like all those coloured stars when I move the mouse on that page though :)
Title: Re: How to add NASM to `Path` environment variable in Windows 10
Post by: Clay on April 04, 2019, 02:38:04 AM
This is even a better site to see in detail how to set your path in Windows 10.

Add to the PATH on Windows 10
https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

And if you are using Microsoft Visual Studio to get a  C compiler for the NASM .obj files, and want to use their fairly new Powershell command tool rather than the DOS Visual Studio command prompt, you may want to add the directory where their cl.exe is located. Actually there four directories, depending if it is x64 or x86 AND Hostx64 or Hostx86. Quite a maze to navigate the path but using Powershell with it's BASH style command in addition to DOS is a lot better for me. And if truth be known, I have had a lot better luck running NASM on Linux than with Windows.