cant get program to upload

Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 1220 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 11 bytes (0%) of dynamic memory, leaving 2037 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM9": The system cannot find the file specified.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Wrong port selected?

Hi there,

If you could, can you go to Tools->Port and see if there is any ports listed. The error message that you posted indicates that the port that is selected is not what your Uno is connected to. If the board is a genuine Uno, in the Tool->Port menu it will list something along the lines of Com 7 (Arduino/Genuino Uno). It may not say 7, that’s just a random number.

Give it a try and let me know!

Problem fixed. The port was showing up but I had not clicked on it to get the checkmark to appear. I assumed it would automatically connect to the port it was connected to. Thanks for your help.