Arduino win32 Batch files

Before I ask display my problems I’d like to add that any help is very appreciated

These are the Batch files I’m talking about: http://playground.arduino.cc/Code/WindowsCommandLine

I just downloaded the Batch files for Arduino and I can’t seem to get it all to work. Firstly I opened the Windows command prompt/CMD and cd into my Desktop and ran “abuild.bat -u C:\Users\Andreas\Desktop\servo.ino”

And I get

C:\Users\Andreas\Desktop>abuild.bat -u C:\Users\Andreas\Desktop\servo.ino
Det går inte att hitta sökvägen. (Can not find the path.)
C:\Users\Andreas\Desktop\servo.ino: file not recognized: File format not recognized

abuild.bat: *** ERROR: cannot compile C:\Users\Andreas\Desktop\servo.ino using comm
and:
abuild.bat: *** ERROR: avr-g++ -fno-exceptions C:\Users\Andreas\Desktop\servo.ino
-o.\obj\servo.cpp.o

C:\Users\Andreas\Desktop>

Now I know that the file is there

C:\Users\Andreas>if exist C:\Users\Andreas\Desktop\servo.ino echo Told ya
Told ya

C:\Users\Andreas>

I’m thinking it might have something to do with the system variables.

ARDUINO_BURNRATE: 19200
ARDUINO_COMPORT: COM3
ARDUINO_CFPU: 16000000
ARDUINO_MCU: atmega168
ARDUNIO_PATH: C:\Program Files (x86)\Arduino
ARDUINO_PROGRAMMER: stk500

The thing is that the only thing I’m certain of is ARDUINO_PATH and ARDUINO_COMPORT since I’ve been in the directory and I used the COMPORT in the GUI editor.

The code that I used is for moving a servo.

#include <Servo.h>

Servo myservo;

void setup()
{
myservo.attach(9);
}

void loop()
{
myservo.writeMicroseconds(1500);
delay(1000);
myservo.writeMicroseconds(1000);
delay(1000);
myservo.writeMicroseconds(2000);
delay(1000);

}

Any help here? :slight_smile:

Why are you trying to build from the command-line?