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.