Sketch uses 4758 bytes (14%) of program storage space. Maximum is 32256 bytes.
Global variables use 544 bytes (26%) of dynamic memory, leaving 1504 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM7": Access is denied.
using the Windows Device Manager check you have the correct COM port, e.g. if you unplug/plug the USB connector the COM port should disappear/appear in the COM listing
check the port is not in use by another program
what is the microcontroller you are using?