I have a batch file to compile and link all of my code. It contains the following:
@echo off
nasm -f aout -o start.o start.asm
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o main.o main.c
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o scrn.o scrn.c
ld -T link.ld -o kernel.bin start.o main.o scrn.o
pause
Problem is, when i run it it just prints all this out as text. It's definitely a batch file. it has the .bat file ending, and in notepad++, the syntax for @echo off and pause are being highlighted without being set manually. Is this a windows 7 bug? or am i doing something wrong?