Genjutsu
Genjutsu

Reputation: 223

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?

Upvotes: 1

Views: 2699

Answers (1)

Maximilian Burszley
Maximilian Burszley

Reputation: 19684

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

Upvotes: 3

Related Questions