function reg(nomcle,valeur){ var shell = new ActiveXObject("WScript.shell"); nomcle = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\"+nomcle shell.RegWrite(nomcle,valeur,"REG_SZ"); }