IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows 7 Discussion :

Précharger Firefox (Windows7)


Sujet :

Windows 7

  1. #1
    Membre actif
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2012
    Messages
    538
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2012
    Messages : 538
    Points : 262
    Points
    262
    Par défaut Précharger Firefox (Windows7)
    Bonjour,

    Je voudrais savoir comment faire pour précharger et garder en mémoire Firefox (ou tout autre programme) au démarrage de windows. Histoire de gagner quelques secondes à chaque ouverture.

    Merci.

  2. #2
    Expert éminent
    Avatar de hackoofr
    Homme Profil pro
    Enseignant
    Inscrit en
    Juin 2009
    Messages
    3 839
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Enseignant

    Informations forums :
    Inscription : Juin 2009
    Messages : 3 839
    Points : 9 222
    Points
    9 222
    Par défaut

    Voila, j'ai traduit votre requête vers un petit programme Vbscript, et j’espère qu'il va marcher pour vos tous
    Copier et coller ce code ci-dessous dans votre Notepad et enregistrer-le sous le nom : ShortcutCreator.vbs
    Et surtout n'oubliez pas mes +1 pour l'encouragement
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    Option Explicit
    Dim Titre,Nom
    Titre = "Créateur de raccourcis by © Hackoo © 2013"
    Call Shortcut(BrowseForFile,Nom)
    '*****************************************************************************************************
    Function BrowseForFile()
    	Dim shell : Set shell = CreateObject("WScript.Shell")
    	Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    	Dim tempFolder : Set tempFolder = fso.GetSpecialFolder(2)
    	Dim tempName : tempName = fso.GetTempName()
    	Dim tempFile : Set tempFile = tempFolder.CreateTextFile(tempName & ".hta")
    	tempFile.Write _
    	"<html>" & _
    	"    <head>" & _
    	"        <Titre>Browse</Titre>" & _
    	"    </head>" & _
    	"    <body>" & _
    	"        <input type='file' id='f'>" & _
    	"        <script type='text/javascript'>" & _
    	"            var f = document.getElementById('f');" & _
    	"            f.click();" & _
    	"            var shell = new ActiveXObject('WScript.Shell');" & _
    	"            shell.RegWrite('HKEY_CURRENT_USER\\Volatile Environment\\MsgResp', f.value);" & _
    	"            window.close();" & _
    	"        </script>" & _
    	"    </body>" & _
    	"</html>"
    	tempFile.Close
    	shell.Run tempFolder & "\" & tempName & ".hta",0,True
    	BrowseForFile = shell.RegRead("HKEY_CURRENT_USER\Volatile Environment\MsgResp")
    	shell.RegDelete "HKEY_CURRENT_USER\Volatile Environment\MsgResp"
    End Function
    '*****************************************************************************************************
    Sub Shortcut(CheminApplication,Nom)
    	Dim objShell,StartFolder,objShortCut,MyTab
    	Set objShell = CreateObject("WScript.Shell")
    	MyTab = Split(CheminApplication,"\")
    	Nom = MyTab(UBound(MyTab))
    	StartFolder = objShell.SpecialFolders("Startup")
    	Set objShortCut = objShell.CreateShortcut(StartFolder & "\" & Nom & ".lnk")
    	objShortCut.TargetPath = Dblquote(CheminApplication)
    	ObjShortCut.IconLocation = "Winver.exe,0"
    	objShortCut.Save
    	MsgBox "Le Raccourci " & Dblquote(Nom) & " est crée avec succès dans le dossier démarrage !",64,Titre
    End Sub
    '*****************************************************************************************************
    Function DblQuote(Str)
    	DblQuote = Chr(34) & Str & Chr(34)
    End Function
    '*****************************************************************************************************

Discussions similaires

  1. Ecouter la radio avec Firefox
    Par Cian dans le forum Applications et environnements graphiques
    Réponses: 20
    Dernier message: 14/07/2005, 19h19
  2. Réponses: 18
    Dernier message: 19/08/2004, 15h11
  3. [XML][XSL][Mozilla Firefox] Integraton dans une page JSP
    Par BANATACH dans le forum XSL/XSLT/XPATH
    Réponses: 3
    Dernier message: 05/08/2004, 14h46
  4. Java ne fonctionne pas sous Firefox
    Par Info-Rital dans le forum Applications et environnements graphiques
    Réponses: 2
    Dernier message: 29/07/2004, 23h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo