|
|
#1 |
|
Beta Member
Join Date: Jan 2011
Posts: 3
|
My OS is XP-Pro SP3
I use the two command lines below to start Firefox with a desired profile. "C:\Program Files\Mozilla Firefox\firefox.exe" -p STEVE "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -p JANE This script will start Firefox using the default profile: Code:
sub shell(cmd)
dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run(cmd)
Set objShell = Nothing
end sub
shell """C:\Program Files\Mozilla Firefox\firefox.exe"""
Code:
shell """C:\Program Files\Mozilla Firefox\firefox.exe""" to start Firefox with the desired profiles? I have tried this line Code:
shell """C:\Program Files\Mozilla Firefox\firefox.exe"" ""--no-remote -p JANE""" But the script still starts Firefox with the default profile. I appreciate any help given to me. Thanks My question was answered here: VBScript to start Firefox with profile This is what worked: STEVE.vbs --------------------------------------------------------------------------------------- sub shell(cmd) dim objShell Set objShell = WScript.CreateObject( "WScript.Shell" ) objShell.Run(cmd) Set objShell = Nothing end sub shell """C:\Program Files\Mozilla Firefox\Firefox\firefox.exe"" --p STEVE" --------------------------------------------------------------------------------------- JANE.vbs --------------------------------------------------------------------------------------- sub shell(cmd) dim objShell Set objShell = WScript.CreateObject( "WScript.Shell" ) objShell.Run(cmd) Set objShell = Nothing end sub shell """C:\Program Files\Mozilla Firefox\Firefox\firefox.exe"" --no-remote -p JANE" --------------------------------------------------------------------------------------- The modifications given to me by "Razor2.3" at that forum worked perfectly. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|