flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved] Windows 7 command line error

Author
Thread Post new topic Reply to topic
Bodo



Joined: 18 Apr 2020
Posts: 6
Bodo
Hi Guys,

I am just starting Flat Assember and i get an error message when using the command line in Windows 7. It works fine in GUI. Please see below for for the error:

c:\Program Files\fasmw\EXAMPLES\HELLO>fasm hello.asm
'fasm' is not recognized as an internal or external command,
operable program or batch file.

Any help would be greatly appreciated.

Thanks,
Bodo
Post 18 Apr 2020, 21:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17492
Location: In your JS exploiting you and your system
revolution
You need to place fasm.exe in a folder listed in your PATH environment variable.

Or add the folder where fasm.exe is into your PATH environment variable.

Or place fasm.exe into your current directory "c:\Program Files\fasmw\EXAMPLES\HELLO"

Or explicitly enter the path to fam.exe. "C:\path\to\fasm\fasm.exe hello.asm"
Post 18 Apr 2020, 21:51
View user's profile Send private message Visit poster's website Reply with quote
Bodo



Joined: 18 Apr 2020
Posts: 6
Bodo
Now i am getting this error below:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

c:\Program Files\fasmw>fasm c:\Program Files\fasmw\EXAMPLES\HELLO\hello.asm
flat assembler version 1.73.23 (1048576 kilobytes memory)
error: source file not found.

c:\Program Files\fasmw>fasm.exe c:\Program Files\fasmw\EXAMPLES\HELLO\hello.asm
flat assembler version 1.73.23 (1048576 kilobytes memory)
error: source file not found.

Below is the include Statement:

c:\Program Files\fasmw\INCLUDE;c:\Program Files\fasmw\EXAMPLES\HELLO

Below is the path statement:

C:\Program Files (x86)\Nmapc:\Program Files\fasmw

I truly appreciate your help.
Post 18 Apr 2020, 22:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17492
Location: In your JS exploiting you and your system
revolution
You will need quotes around your source file when there is a space:
c:\Program Files\fasmw>fasm "c:\Program Files\fasmw\EXAMPLES\HELLO\hello.asm"

Otherwise it is seen as two parameters:
1: c:\Program
2: Files\fasmw\EXAMPLES\HELLO\hello.asm
Post 18 Apr 2020, 22:18
View user's profile Send private message Visit poster's website Reply with quote
Bodo



Joined: 18 Apr 2020
Posts: 6
Bodo
That worked! Thank you so much.
Post 18 Apr 2020, 22:34
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 777
Location: Belarus
DimonSoft
revolution wrote:
You need to place fasm.exe in a folder listed in your PATH environment variable.

Or add the folder where fasm.exe is into your PATH environment variable.

Or place fasm.exe into your current directory "c:\Program Files\fasmw\EXAMPLES\HELLO"

Or explicitly enter the path to fam.exe. "C:\path\to\fasm\fasm.exe hello.asm"

Or just stop using command line and switch to FASMW until you get familiar enough with FASM itself. Returning to it later, after learning the basic ideas of paths and stuff with your own programs, makes the question get magically answered.
Post 19 Apr 2020, 07:32
View user's profile Send private message Visit poster's website 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 YouTube, Twitter.

Website powered by rwasa.