2009-11-20 2 views
0

Comment démarrer un profil Firefox dans un startupscript? Ce besoin faire:Démarrer un Firefoxprofile dans un startupscript?

Set shell = CreateObject("WScript.Shell") 

progList = Array("C:\Program Files\Mozilla Firefox\firefox.exe" -P "PrimaryNew" -no-remote") 



For Each prog in progList 
    'WScript.Echo "File Name: " & prog 
    shell.run """" & prog & """", 1, false 
    WScript.sleep 10000 '10 seconds 
Next 

Répondre

1

En utilisant Exec au lieu de Run

Set shell = CreateObject("WScript.Shell") 
ff = "C:\Program Files\Mozilla Firefox\firefox.exe -no-remote -p " 'Firefox path and cmd args 
profileList = Array("profile1","profile2","profile3") 'array of profile names 
For Each prof in profileList 
    'WScript.Echo "File Name: " & ff & prof 
    shell.Exec(ff & prof) 
    WScript.sleep 10000 '10 seconds 
Next 
Questions connexes