Sketch fails to upload to Arduino

This is the message I receive:

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

Archiving built core (caching) in: C:\Users\User\AppData\Local\Temp\arduino_cache_896844\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Sketch uses 11208 bytes (34%) of program storage space. Maximum is 32256 bytes.
Global variables use 790 bytes (38%) of dynamic memory, leaving 1258 bytes for local variables. Maximum is 2048 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.

When I try to run the sketch using the online editor, the sketch runs.

I have checked the device manager and the ports are correct, the board is correct under "tools".

This sketch ran before I had the rollback my Windows 10 system to the default settings. My files were restored.
I checked the Arduino driver and I have been told that it is the correct version.

Select your board's port from the Tools > Port menu.

I did check the board and it is correct "Arduino Uno".

The port indicates its on COM3 (which is where it normally is)

I attempted to reload the sketch with verbose out put and received the following:

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

Archiving built core (caching) in: C:\Users\User\AppData\Local\Temp\arduino_cache_972218\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Sketch uses 11208 bytes (34%) of program storage space. Maximum is 32256 bytes.
Global variables use 790 bytes (38%) of dynamic memory, leaving 1258 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM1 -b115200 -D -Uflash:w:C:\Users\User\AppData\Local\Temp\arduino_build_904500/GPSvx_Test_GPS_2_Parts_Reader.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

An error occurred while uploading the sketch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified.

avrdude done. Thank you.

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

I see the reference to COM 1 - where did that come from?

In the Arduino IDE, there's a Tools menu. Under that menu there's a Port menu.

Do you have COM3 selected from that menu?

I think I found it:

c:/users/User/AppData/Local/Arduino15/preferences.txt contains (among other things):

serial.port=COM1
serial.port.file=COM1

I changed them both to COM3 (after shutting down the IDE) and that solved the problem.

Many thanks to those of you that took the time to help (I need all I can get).

The Tools > Port menu should do the same thing, but in an easier way. Did you try it?