NO

Author Topic: PoAsm & ERRORLEVEL  (Read 42 times)

Offline Jokaste

  • Member
  • *
  • Posts: 101
  • Never be pleased, always improve.
    • ImgTools
PoAsm & ERRORLEVEL
« on: December 01, 2017, 08:25:32 pm »
I want to launch poasm into a bat file.
Does poasm initialize an ERRORLEVEL?
Which values?
And PoLink?
Example :

"C:\Program Files\PellesC\Bin\poasm.exe" -AAMD64 -Gr -V2 "C:\Users\Grincheux\Documents\Assembleur\E\Test.asm"
IF ERRORLEVEL 1 GOTO Errors
@Echo Assembling phase ended
"C:\Program Files\PellesC\Bin\polink.exe" -subsystem:windows -machine:x64 -release -largeaddressaware -osversion:6.10 -out:"
C:\Users\Grincheux\Documents\Assembleur\E\Test.exe" "C:\Users\Grincheux\Documents\Assembleur\E\Test.obj"
ERRORLEVEL 1 GOTO Errors
@Echo Linking phase ended
@Echo Build Ended
@Exit
:Errors
@Echo PoAsm found errors in this files during compilation
@EXIT
« Last Edit: December 01, 2017, 08:28:12 pm by Jokaste »
Kenavo