When using File.WriteAllBytes, uou must provide the path to a file as first argument, not to a folder... otherwise the method cannot know to which file data must be written to:
String file = 'data.ext';
String path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
String filePath = Path.Combine(path, file);
File.WriteAllBytes(filePath, Properties.Resources.chargementvideo);
Altrough I suggest you to avoid writing data into those folders... when accessing them, an elevation of privileges is necessary. You cannot do it programmatically, but you can make your application run with Administrative Rights by editing its manifest as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
<v3:security>
<v3:requestedPrivileges>
<v3:requestedExecutionLevel level="highestAvailable"/>
</v3:requestedPrivileges>
</v3:security>
</v3:trustInfo>
</assembly>