flat assembler
Message board for the users of flat assembler.

Index > Main > Does fasm.exe return any code for success or failure?

Author
Thread Post new topic Reply to topic
keremg



Joined: 15 Jul 2008
Posts: 2
keremg
Hi,

can someone tell me whether fasm.exe process returns with any specific code on failure or success of source compilation? I always get 0x2 as return code, no matter whether it fails or succeeds the process of passing/compilation? I want to batch compile several files and i want to react on a proper way on failure, so i need a "reliable" way for determining the result of the compilation, either some signal, return code, etc,...but it has to be really realiable!


Regards


Kerem
Post 15 Jul 2008, 04:13
View user's profile Send private message Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 140
SFeLi
COMMAND.COM wrote:

C:\>command /z

Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
Код возврата (ERRORLEVEL): 0

C:\>fasm foo.asm
flat assembler version 1.67.27 (75075 kilobytes memory)
error: source file not found.
Код возврата (ERRORLEVEL): 255

C:\>fasm x.asm
flat assembler version 1.67.27 (76164 kilobytes memory)
x.asm [1]:
db das
error: invalid argument.
Код возврата (ERRORLEVEL): 2

C:\>fasm x.asm
flat assembler version 1.67.27 (75075 kilobytes memory)
1 passes, 1 bytes.
Код возврата (ERRORLEVEL): 0
Post 15 Jul 2008, 04:41
View user's profile Send private message Reply with quote
keremg



Joined: 15 Jul 2008
Posts: 2
keremg
SFeLi wrote:
COMMAND.COM wrote:

C:\>command /z

Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
Код возврата (ERRORLEVEL): 0

C:\>fasm foo.asm
flat assembler version 1.67.27 (75075 kilobytes memory)
error: source file not found.
Код возврата (ERRORLEVEL): 255





Spasibo!


Regards

Kerem
Post 15 Jul 2008, 04:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.