Search code examples
powershellautomationnmake

Running nmake in powershell


I am working on a powershell script, the script is calling a .bat file within .ps1 to run nmake which doesn't make sense to me, so I wish to move everything in one ps script, adding nmake to the script raise this error The term 'NMAKE' is not recognized as the name of a cmdlet, function, script file.... Is there anyway to run nmake from powershell?


Solution

  • Include the file path to your executable if it is not in your PATH environment variable. e.g.:

    & 'Path\to\nmake.exe' /arg1 pass /arg2 in