Programming arduino using avrdude from command prompt Out of curiosity, I am trying to upload a simple hex file to Arduino UNO using avrdude from windows command prompt.  

As per this forum, I tried to implement it. But got stuck at 


  avrdude: ser_open(): can't open device "COM41": The system cannot find the file
  specified.


This command was directly imported from Arduino IDE verbose, and also it works fine when uploaded with Arduino IDE. I checked both the device and syntax are correct unless I would not be able to generate the hex file by Arduino compiler.

P.S. I have installed Winavr separately although it was pre-installed by Arduino
itself.

Here is a snapshot of the error 

What could be the possible reason for it to fail? Please notify, if anything is missing.
can't open device "COM41": The system cannot find the file specified.


This means there is no device at COM41. This may be due to 2 reasons: 


You may not have connected your arduino. If this is the case then you please connect the arduino and retry
Your arduino might be on a different COM port. If this is the case, then, go to device manager and check your arduino's COM port and replace COM41 with that and retry.