AVRDUDE come?

Ciao ragazzi vorrei programmare il mio arduino senza usare il software ma tramite un file .bat.

Ho letto che con AVRDUDE è possibile creare il file…

come si fa?
Qualcuno può aiutarmi?

Grazie a tutti per le risposte

l'ide fa così (per l'esempio blink):

avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/wiring_shift.c -o/tmp/build947782177252819900.tmp/wiring_shift.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/wiring_digital.c -o/tmp/build947782177252819900.tmp/wiring_digital.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/wiring.c -o/tmp/build947782177252819900.tmp/wiring.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/wiring_analog.c -o/tmp/build947782177252819900.tmp/wiring_analog.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/pins_arduino.c -o/tmp/build947782177252819900.tmp/pins_arduino.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/wiring_pulse.c -o/tmp/build947782177252819900.tmp/wiring_pulse.c.o 
avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/WInterrupts.c -o/tmp/build947782177252819900.tmp/WInterrupts.c.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/Tone.cpp -o/tmp/build947782177252819900.tmp/Tone.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/WMath.cpp -o/tmp/build947782177252819900.tmp/WMath.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/WString.cpp -o/tmp/build947782177252819900.tmp/WString.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/Print.cpp -o/tmp/build947782177252819900.tmp/Print.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/main.cpp -o/tmp/build947782177252819900.tmp/main.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /home/mauro/arduino-0021/hardware/arduino/cores/arduino/HardwareSerial.cpp -o/tmp/build947782177252819900.tmp/HardwareSerial.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/wiring_shift.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/wiring_digital.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/wiring.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/wiring_analog.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/pins_arduino.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/wiring_pulse.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/WInterrupts.c.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/Tone.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/WMath.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/WString.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/Print.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/main.cpp.o 
avr-ar rcs /tmp/build947782177252819900.tmp/core.a /tmp/build947782177252819900.tmp/HardwareSerial.cpp.o 
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=21 -I/home/mauro/arduino-0021/hardware/arduino/cores/arduino /tmp/build947782177252819900.tmp/Blink.cpp -o/tmp/build947782177252819900.tmp/Blink.cpp.o 
avr-gcc -Os -Wl,--gc-sections -mmcu=atmega2560 -o /tmp/build947782177252819900.tmp/Blink.cpp.elf /tmp/build947782177252819900.tmp/Blink.cpp.o /tmp/build947782177252819900.tmp/core.a -L/tmp/build947782177252819900.tmp -lm 
avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/build947782177252819900.tmp/Blink.cpp.elf /tmp/build947782177252819900.tmp/Blink.cpp.eep 
avr-objcopy -O ihex -R .eeprom /tmp/build947782177252819900.tmp/Blink.cpp.elf /tmp/build947782177252819900.tmp/Blink.cpp.hex 
Binary sketch size: 1484 bytes (of a 258048 byte maximum)