1
我正在使用powershell脚本,脚本正在调用.ps1中的.bat文件来运行nmake,这对我没有意义,所以我希望将所有内容都移动到一个ps脚本中,添加编写脚本会引发此错误The term 'NMAKE' is not recognized as the name of a cmdlet, function, script file...
。无论如何,从PowerShell运行nmake?在powershell中运行nmake
要么将nmake文件夹添加到PATH环境变量,要么提供nmake.exe的完整路径。 (如果你在这个位置有引号,比如'&“C:\ path \ to \ nmake.exe”',那么在前面放一个'&' – BenH