Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RequireAdmin
- #include <File.au3>
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #include <Zip.au3>
- #include <ProgressConstants.au3>
- HotKeySet("!{F4}", "_void")
- Func _void()
- EndFunc ;==>_void
- ;~ =================
- ; Dossier de Travail
- ;~ =================
- DirCreate(@TempDir & "\REG")
- ;Fichiers REG
- FileInstall(@UserProfileDir & "\Desktop\AUTOIT\Mes tools\RestExt\REGFILE\vista" & "\vistareg.zip", @TempDir & "\REG\vistareg.zip")
- $ZipFile = @TempDir & "\REG" & "\vistareg.zip"
- $DestPath = @TempDir & "\REG\vista"
- _Zip_UnzipAll($ZipFile, $DestPath, 1)
- FileDelete(@TempDir & "\REG\vistareg.zip")
- ;Images GUI
- FileInstall(@UserProfileDir & "\Desktop\AUTOIT\Mes tools\RestExt\REGFILE" & "\allrest.jpg", @TempDir & "\REG\allrest.jpg")
- FileInstall(@UserProfileDir & "\Desktop\AUTOIT\Mes tools\RestExt\REGFILE" & "\wvista.jpg", @TempDir & "\REG\wvista.jpg")
- $allrest = @TempDir & "\REG\allrest.jpg"
- $wvista = @TempDir & "\REG\wvista.jpg"
- ;~ ==================
- ;~ ==================
- $asf = @TempDir & "\REG\vista\vista_asf.reg"
- $asx = @TempDir & "\REG\vista\vista_asx.reg"
- $audiocd = @TempDir & "\REG\vista\vista_audiocd.reg"
- $avi = @TempDir & "\REG\vista\vista_avi.reg"
- $bat = @TempDir & "\REG\vista\vista_bat.reg"
- $bmp = @TempDir & "\REG\vista\vista_bmp.reg"
- $cab = @TempDir & "\REG\vista\vista_cab.reg"
- $chm = @TempDir & "\REG\vista\vista_chm.reg"
- $cmd = @TempDir & "\REG\vista\vista_cmd.reg"
- $com = @TempDir & "\REG\vista\vista_com.reg"
- $cpl = @TempDir & "\REG\vista\vista_cpl.reg"
- $cur = @TempDir & "\REG\vista\vista_cur.reg"
- $directory = @TempDir & "\REG\vista\vista_directory.reg"
- $dll = @TempDir & "\REG\vista\vista_dll.reg"
- $drive = @TempDir & "\REG\vista\vista_drive.reg"
- $dvrms = @TempDir & "\REG\vista\vista_dvr-ms.reg"
- $eml = @TempDir & "\REG\vista\vista_eml.reg"
- $exe = @TempDir & "\REG\vista\vista_exe.reg"
- $folder = @TempDir & "\REG\vista\vista_folder.reg"
- $gif = @TempDir & "\REG\vista\vista_gif.reg"
- $hlp = @TempDir & "\REG\vista\vista_hlp.reg"
- $hta = @TempDir & "\REG\vista\vista_hta.reg"
- $htm = @TempDir & "\REG\vista\vista_htm.reg"
- $html = @TempDir & "\REG\vista\vista_html.reg"
- $ico = @TempDir & "\REG\vista\vista_ico.reg"
- $inf = @TempDir & "\REG\vista\vista_inf.reg"
- $ini = @TempDir & "\REG\vista\vista_ini.reg"
- $jpe = @TempDir & "\REG\vista\vista_jpe.reg"
- $jpeg = @TempDir & "\REG\vista\vista_jpeg.reg"
- $jpg = @TempDir & "\REG\vista\vista_jpg.reg"
- $js = @TempDir & "\REG\vista\vista_js.reg"
- $lnk = @TempDir & "\REG\vista\vista_lnk.reg"
- $m3u = @TempDir & "\REG\vista\vista_m3u.reg"
- $mp3 = @TempDir & "\REG\vista\vista_mp3.reg"
- $mp4 = @TempDir & "\REG\vista\vista_mp4.reg"
- $mpa = @TempDir & "\REG\vista\vista_mpa.reg"
- $mpe = @TempDir & "\REG\vista\vista_mpe.reg"
- $mpeg = @TempDir & "\REG\vista\vista_mpeg.reg"
- $mpg = @TempDir & "\REG\vista\vista_mpg.reg"
- $msc = @TempDir & "\REG\vista\vista_msc.reg"
- $msi = @TempDir & "\REG\vista\vista_msi.reg"
- $png = @TempDir & "\REG\vista\vista_png.reg"
- $reg = @TempDir & "\REG\vista\vista_reg.reg"
- $rtf = @TempDir & "\REG\vista\vista_rtf.reg"
- $scr = @TempDir & "\REG\vista\vista_scr.reg"
- $tif = @TempDir & "\REG\vista\vista_tif.reg"
- $tiff = @TempDir & "\REG\vista\vista_tiff.reg"
- $txt = @TempDir & "\REG\vista\vista_txt.reg"
- $url = @TempDir & "\REG\vista\vista_url.reg"
- $vbe = @TempDir & "\REG\vista\vista_vbe.reg"
- $vbs = @TempDir & "\REG\vista\vista_vbs.reg"
- $wma = @TempDir & "\REG\vista\vista_wma.reg"
- $wmv = @TempDir & "\REG\vista\vista_wmv.reg"
- $wsf = @TempDir & "\REG\vista\vista_wsf.reg"
- $xml = @TempDir & "\REG\vista\vista_xml.reg"
- $xps = @TempDir & "\REG\vista\vista_xps.reg"
- $zip = @TempDir & "\REG\vista\vista_zip.reg"
- ; Création de l'interface
- $gui = GUICreate("RestExt : Restaurez les extensions sous vista", 600, 550, 400, 200, $WS_SYSMENU)
- GUISetBkColor(0xFFFFFF)
- GUICtrlCreatePic($wvista, 300, 0, 275, 183)
- GUICtrlCreatePic($allrest, 330, 300, 230, 218)
- GUICtrlCreateLabel("Bonjour.", 5, 5, 100, 20)
- GUICtrlSetFont(-1, 11, 100)
- GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
- GUICtrlCreateLabel("Pour restaurer une extension, il suffit de cliquer sur le bouton approprié", 10, 30, 300, 50)
- GUICtrlSetFont(-1, 11, 100)
- GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
- GUICtrlCreateLabel("Si vous voulez restaurez toutes", 345, 400, 200, 50)
- GUICtrlSetFont(-1, 11, 100)
- GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
- GUICtrlCreateLabel("les extensions", 350, 420, 200, 50)
- GUICtrlSetFont(-1, 11, 100)
- GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
- GUICtrlCreateLabel("Cliquez ICI =>", 350, 450, 200, 50)
- GUICtrlSetFont(-1, 11, 100)
- GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
- GUISetState(@SW_SHOW)
- ;Mise en place des boutons
- $bouton1 = GUICtrlCreateButton("asf", 5, 80, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton2 = GUICtrlCreateButton("asx", 65, 80, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton3 = GUICtrlCreateButton("audiocd", 125, 80, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton4 = GUICtrlCreateButton("avi", 185, 80, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton5 = GUICtrlCreateButton("bat", 245, 80, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton6 = GUICtrlCreateButton("bmp", 5, 120, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton7 = GUICtrlCreateButton("cab", 65, 120, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton8 = GUICtrlCreateButton("chm", 125, 120, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton9 = GUICtrlCreateButton("cmd", 185, 120, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton10 = GUICtrlCreateButton("com", 245, 120, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton11 = GUICtrlCreateButton("cpl", 5, 160, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton12 = GUICtrlCreateButton("cur", 65, 160, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton13 = GUICtrlCreateButton("directory", 125, 160, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton14 = GUICtrlCreateButton("dll", 185, 160, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton15 = GUICtrlCreateButton("drive", 245, 160, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton16 = GUICtrlCreateButton("dvr-ms", 5, 200, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton17 = GUICtrlCreateButton("eml", 65, 200, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton18 = GUICtrlCreateButton("exe", 125, 200, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton19 = GUICtrlCreateButton("folder", 185, 200, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton20 = GUICtrlCreateButton("gif", 245, 200, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton21 = GUICtrlCreateButton("hlp", 5, 240, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton22 = GUICtrlCreateButton("hta", 65, 240, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton23 = GUICtrlCreateButton("htm", 125, 240, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton24 = GUICtrlCreateButton("html", 185, 240, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton25 = GUICtrlCreateButton("ico", 245, 240, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton26 = GUICtrlCreateButton("inf", 5, 280, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton27 = GUICtrlCreateButton("ini", 65, 280, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton28 = GUICtrlCreateButton("jpe", 125, 280, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton29 = GUICtrlCreateButton("jpeg", 185, 280, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton30 = GUICtrlCreateButton("jpg", 245, 280, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton31 = GUICtrlCreateButton("js", 5, 320, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton32 = GUICtrlCreateButton("lnk", 65, 320, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton33 = GUICtrlCreateButton("m3u", 125, 320, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton34 = GUICtrlCreateButton("mp3", 185, 320, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton35 = GUICtrlCreateButton("mpa", 245, 320, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton36 = GUICtrlCreateButton("mpeg", 5, 360, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton37 = GUICtrlCreateButton("mpg", 65, 360, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton38 = GUICtrlCreateButton("msc", 125, 360, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton39 = GUICtrlCreateButton("msi", 185, 360, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton40 = GUICtrlCreateButton("png", 245, 360, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton41 = GUICtrlCreateButton("reg", 5, 400, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton42 = GUICtrlCreateButton("rtf", 65, 400, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton43 = GUICtrlCreateButton("scr", 125, 400, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton44 = GUICtrlCreateButton("tif", 185, 400, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton45 = GUICtrlCreateButton("tiff", 245, 400, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton46 = GUICtrlCreateButton("txt", 5, 440, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton47 = GUICtrlCreateButton("url", 65, 440, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton48 = GUICtrlCreateButton("vbe", 125, 440, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton49 = GUICtrlCreateButton("vbs", 185, 440, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton50 = GUICtrlCreateButton("wma", 245, 440, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton51 = GUICtrlCreateButton("wmv", 5, 480, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton52 = GUICtrlCreateButton("wsf", 65, 480, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton53 = GUICtrlCreateButton("xml", 125, 480, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton54 = GUICtrlCreateButton("xps", 185, 480, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- $Bouton55 = GUICtrlCreateButton("zip", 245, 480, 50, 25, $BS_ICON)
- ;~ GUICtrlSetImage(-1, "C:\Users\thomas\Desktop\txt_logo.ico", 5)
- ;bouton tout restaurer
- $Bouton56 = GUICtrlCreateButton("Tout restaurer", 450, 445, 80, 25, $BS_ICON)
- GUICtrlSetBkColor(-1, 0x3A6695)
- GUICtrlSetColor(-1, 0xFFFFFF)
- GUICtrlSetState(-1, $GUI_ONTOP)
- While 1 ; "Faire ce qui suit tout le temps"
- $nMsg = GUIGetMsg() ; Vérification de ce qui a changé dans l'interface
- Switch $nMsg
- Case $GUI_EVENT_CLOSE ; "Si on clique sur la croix, ça ferme"
- DirRemove(@TempDir & "\REG\vista", 1)
- Exit
- ; ==============> DEBUT EXEMPLE BOUTON <==============
- ;~ case bouton99 => exemple pour TXT
- ;~ runwait(@ComSpec & " /c reg import " & '"' & $txt & '"',"",@SW_HIDE)
- ; ==============> FIN EXEMPLE BOUTON <==============
- ;~ 1ère ligne de boutons
- Case $bouton1
- RunWait(@ComSpec & " /c reg import " & '"' & $asf & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton2
- RunWait(@ComSpec & " /c reg import " & '"' & $asx & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton3
- RunWait(@ComSpec & " /c reg import " & '"' & $audiocd & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton4
- RunWait(@ComSpec & " /c reg import " & '"' & $avi & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton5
- RunWait(@ComSpec & " /c reg import " & '"' & $bat & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 2ème ligne de boutons
- Case $Bouton6
- RunWait(@ComSpec & " /c reg import " & '"' & $bmp & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton7
- RunWait(@ComSpec & " /c reg import " & '"' & $cab & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton8
- RunWait(@ComSpec & " /c reg import " & '"' & $chm & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton9
- RunWait(@ComSpec & " /c reg import " & '"' & $cmd & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton10
- RunWait(@ComSpec & " /c reg import " & '"' & $com & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 3ème ligne de boutons
- Case $Bouton11
- RunWait(@ComSpec & " /c reg import " & '"' & $cpl & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton12
- RunWait(@ComSpec & " /c reg import " & '"' & $cur & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton13
- RunWait(@ComSpec & " /c reg import " & '"' & $directory & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton14
- RunWait(@ComSpec & " /c reg import " & '"' & $dll & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton15
- RunWait(@ComSpec & " /c reg import " & '"' & $drive & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 4ème ligne de boutons
- Case $Bouton16
- RunWait(@ComSpec & " /c reg import " & '"' & $dvrms & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton17
- RunWait(@ComSpec & " /c reg import " & '"' & $eml & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton18
- RunWait(@ComSpec & " /c reg import " & '"' & $exe & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton19
- RunWait(@ComSpec & " /c reg import " & '"' & $folder & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton20
- RunWait(@ComSpec & " /c reg import " & '"' & $gif & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 5ème ligne de boutons
- Case $Bouton21
- RunWait(@ComSpec & " /c reg import " & '"' & $hlp & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton22
- RunWait(@ComSpec & " /c reg import " & '"' & $hta & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton23
- RunWait(@ComSpec & " /c reg import " & '"' & $htm & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton24
- RunWait(@ComSpec & " /c reg import " & '"' & $html & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton25
- RunWait(@ComSpec & " /c reg import " & '"' & $ico & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 6ème ligne de boutons
- Case $Bouton26
- RunWait(@ComSpec & " /c reg import " & '"' & $inf & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton27
- RunWait(@ComSpec & " /c reg import " & '"' & $ini & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton28
- RunWait(@ComSpec & " /c reg import " & '"' & $jpe & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton29
- RunWait(@ComSpec & " /c reg import " & '"' & $jpeg & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton30
- RunWait(@ComSpec & " /c reg import " & '"' & $jpg & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 7ème ligne de boutons
- Case $Bouton31
- RunWait(@ComSpec & " /c reg import " & '"' & $js & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton32
- RunWait(@ComSpec & " /c reg import " & '"' & $lnk & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton33
- RunWait(@ComSpec & " /c reg import " & '"' & $m3u & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton34
- RunWait(@ComSpec & " /c reg import " & '"' & $mp3 & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton35
- RunWait(@ComSpec & " /c reg import " & '"' & $mpa & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 8ème ligne de boutons
- Case $Bouton36
- RunWait(@ComSpec & " /c reg import " & '"' & $mpeg & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton37
- RunWait(@ComSpec & " /c reg import " & '"' & $mpg & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton38
- RunWait(@ComSpec & " /c reg import " & '"' & $msc & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton39
- RunWait(@ComSpec & " /c reg import " & '"' & $msi & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton40
- RunWait(@ComSpec & " /c reg import " & '"' & $png & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 9ème ligne de boutons
- Case $Bouton41
- RunWait(@ComSpec & " /c reg import " & '"' & $reg & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton42
- RunWait(@ComSpec & " /c reg import " & '"' & $rtf & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton43
- RunWait(@ComSpec & " /c reg import " & '"' & $scr & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton44
- RunWait(@ComSpec & " /c reg import " & '"' & $tif & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton45
- RunWait(@ComSpec & " /c reg import " & '"' & $tiff & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;~ 10ème ligne de boutons
- Case $Bouton46
- RunWait(@ComSpec & " /c reg import " & '"' & $txt & '"', "", @SW_HIDE)
- Case $Bouton47
- RunWait(@ComSpec & " /c reg import " & '"' & $url & '"', "", @SW_HIDE)
- Case $Bouton48
- RunWait(@ComSpec & " /c reg import " & '"' & $vbe & '"', "", @SW_HIDE)
- Case $Bouton49
- RunWait(@ComSpec & " /c reg import " & '"' & $vbs & '"', "", @SW_HIDE)
- Case $Bouton50
- RunWait(@ComSpec & " /c reg import " & '"' & $wma & '"', "", @SW_HIDE)
- ;~ 11ème ligne de boutons
- Case $Bouton51
- RunWait(@ComSpec & " /c reg import " & '"' & $wmv & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton52
- RunWait(@ComSpec & " /c reg import " & '"' & $wsf & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton53
- RunWait(@ComSpec & " /c reg import " & '"' & $xml & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton54
- RunWait(@ComSpec & " /c reg import " & '"' & $xps & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- Case $Bouton55
- RunWait(@ComSpec & " /c reg import " & '"' & $zip & '"', "", @SW_HIDE)
- MsgBox(0, "Succès !", "L'extension a bien été restauré, appuyez sur OK pour continuer")
- ;bouton tout restaurer
- Case $Bouton56
- $BarreProgression = GUICreate("", 550, 100, 0, 0, $WS_VISIBLE)
- $Progress = GUICtrlCreateProgress(10, 30, 550, 30, $PBS_MARQUEE)
- GUICtrlCreateLabel("Veuillez patientez pendant la restautration...", 4, -4, 550, 100)
- GUICtrlSetFont(-1, 20, 800, 0, "@Arial Unicode MS")
- GUICtrlSetColor(-1, 0xFF0000) ;couleur du texte
- GUICtrlSendMsg($Progress, 0x0400 + 10, 1, Number(30)) ; on envoie la ProgressBar
- GUISetState(@SW_SHOW)
- ;~ 1ère ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $asf & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $asx & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $audiocd & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $avi & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $bat & '"', "", @SW_HIDE)
- ;~ 2ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $bmp & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $cab & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $chm & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $cmd & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $com & '"', "", @SW_HIDE)
- ;~ 3ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $cpl & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $cur & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $directory & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $dll & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $drive & '"', "", @SW_HIDE)
- ;~ 4ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $dvrms & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $eml & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $exe & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $folder & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $gif & '"', "", @SW_HIDE)
- ;~ 5ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $hlp & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $hta & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $htm & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $html & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $ico & '"', "", @SW_HIDE)
- ;~ 6ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $inf & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $ini & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $jpe & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $jpeg & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $jpg & '"', "", @SW_HIDE)
- ;~ 7ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $js & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $lnk & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $m3u & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $mp3 & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $mpa & '"', "", @SW_HIDE)
- ;~ 8ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $mpeg & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $mpg & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $msc & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $msi & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $png & '"', "", @SW_HIDE)
- ;~ 9ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $reg & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $rtf & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $scr & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $tif & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $tiff & '"', "", @SW_HIDE)
- ;~ 10ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $txt & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $url & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $vbe & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $vbs & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $wma & '"', "", @SW_HIDE)
- ;~ 11ème ligne de boutons
- RunWait(@ComSpec & " /c reg import " & '"' & $wmv & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $wsf & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $xml & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $xps & '"', "", @SW_HIDE)
- RunWait(@ComSpec & " /c reg import " & '"' & $zip & '"', "", @SW_HIDE)
- GUIDelete($BarreProgression)
- MsgBox(0, "Fini !", "Toutes les extensions ont été restaurées")
- EndSwitch
- WEnd
Add Comment
Please, Sign In to add comment