compile and upload from the prompt ?

to make the story short . i have arduino code in a text file , i need a program that would compile that code then upload it to Arduino .
i am familiar with C windows programming so that's what i am doing .
the upload part is simple , once i have the hex file i can continue the rest on my own .
but the compilation part is what's causing problems .
i still cant figure a clear path to do that .

thank you .

From 1.5 version of the Arduino IDE you can use command line compilation.

Riva:
From 1.5 version of the Arduino IDE you can use command line compilation.

(sorry)
thank you very much Riva , problem solved :smiley:

You may find something useful in this Thread

...R