1@echo off
2rem Try to find the AMD64 assembler and call it with the supplied arguments.
3
4set MLEXE=Microsoft Platform SDK\Bin\Win64\x86\AMD64\ml64.EXE
5
6rem For the environment variables see also
7rem http://msdn.microsoft.com/library/en-us/win64/win64/wow64_implementation_details.asp
8
9if exist "%ProgramFiles%\%MLEXE%" (
10  set ML64="%ProgramFiles%\%MLEXE%"
11) else if exist "%ProgramW6432%\%MLEXE%" (
12  set ML64="%ProgramW6432%\%MLEXE%"
13) else (
14  set ML64=ml64.exe
15)
16
17%ML64% %*
18