What I have to do?

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

WARNING: Spurious .github folder in 'Adafruit Motor Shield library' library

Sketch uses 4,782 bytes (14%) of program storage space. Maximum is 32,256 bytes.
Global variables use 396 bytes (19%) of dynamic memory, leaving 1,652 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "\.\COM1": 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.

Try this:

  • With the Arduino board unplugged from the USB open the Tools > Port menu and note the listed ports. If the Port menu is gray and disabled then that means there are no ports available.
  • Close the Tools > Port menu.
  • Plug in the USB cable on the Arduino board
  • Wait a little while for the Arduino board to connect
  • Open Tools > Port, the new port on the list is your Arduino board. In some cases it will have the name of the board next to the port name but this doesn't happen with all boards. If the Port menu is gray and disabled then that means your Arduino board didn't install correctly. You may need to install a driver.
  • Select your Arduino's port from the menu.

Thx, but the Port menu is always gray. And my device driver is up to date.

Try a different USB cable.