loShell = CreateObject("WScript.Shell") lcExt = UPPER(tcExt) lcFileGroupName = loShell.RegRead('HKCR\' + lcExt + '\') lcCommand = lcPathEXE+' "%1" '+lcOption lcMenuItem = tcText DO CASE CASE UPPER(tcAction) = "W" &&Write Key loShell.RegWrite('HKCR\' + lcFileGroupName + '\shell\' + lcMenuItem + '\command\', lcCommand) CASE UPPER(tcAction) = "D" &&Delete Key loShell.RegDelete('HKCR\' + lcFileGroupName + '\shell\' + lcMenuItem + '\command\') loShell.RegDelete('HKCR\' + lcFileGroupName + '\shell\' + lcMenuItem + '\') ENDCASEThanks for your answers