开发者

Starting a Firefoxprofile in a startupscript?

开发者 https://www.devze.com 2022-12-11 20:30 出处:网络
How do you start a Firefox-profile in a startupscript? This want do: Set shell = CreateObject(\"WScript.Shell\")

How do you start a Firefox-profile in a startupscript? This want do:

Set shell = CreateObject("WScript.Shell")

progList = Array("C:\Program Files\Mozilla Firefox\firefox.ex开发者_运维百科e" -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


Using Exec instead of 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
0

精彩评论

暂无评论...
验证码 换一张
取 消