avrdude: ser_open(): can't open device "\\.\COM4": Le fichier est introuvable

No idea about the problem. What does device manager say when you connect and disconnect the Arduino? Is it indeed COM4 that shows and disappears?