Error 1, while uploading

Sketch uses 8784 bytes (27%) of program storage space. Maximum is 32256 bytes.
Global variables use 498 bytes (24%) of dynamic memory, leaving 1550 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM6"
Failed uploading: uploading error: exit status 1

can any one help with this error

Welcome to the forum

Does COM6 exist on your PC ?
Is anything else apart from the Arduino connected to COM6 ?

yes com 6 available

another com 9 is there and its working fine

Does COM6 only get created when you plug in the Arduino, which is what I would expect, or is it there all the time ?

yes when i plug in to arduino it get created

Sorry, I am out if ideas