Not able to upload due to port error

Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 112820 bytes (44%) of program storage space. Maximum is 253952 bytes.
Global variables use 4406 bytes (53%) of dynamic memory, leaving 3786 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\.\COM4": The system cannot find the file specified.

avrdude: ser_drain(): read error: The handle is invalid.

avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

the selected serial port avrdude: stk500_send(): failed to send command to serial port
does not exist or your board is not connected

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Invalid library found in C:\Users\Bob\Documents\Arduino\libraries\BaseStation-master: no headers files (.h) found in C:\Users\Bob\Documents\Arduino\libraries\BaseStation-master
Invalid library found in C:\Users\Bob\Documents\Arduino\libraries\BaseStation-master: no headers files (.h) found in C:\Users\Bob\Documents\Arduino\libraries\BaseStation-master

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

Have tried to upload on 2 computers and 3 different boards, 2 of which are new and one is the one i want to update

It shows the board on com 4 which is correct, also shows in device manager. I have tried uninstalling in device manager and restarting but no go. I used this board and computer to load this about a month ago with no issues, i just needed to tweak a couple of settings for my 3d printer and this is what has been happening. The board is out of the printer and disconnected from the ramps board as well

Do you have another arduino you can subsititue ?

Ok, so sitting here looking at this i'm trying to figure out what the issue could be as i never had an issue before then i realized that i had a small 4 port usb hub in one of the usb slots on the front of my tower that i didn't have before. Took it out and the computer now sees the arduino on com5 instead of 4 and it will upload.

Thanks for providing an update with your solution bobbyboy1962! I wouldn't have expected this resolution. I'm glad it's working now.