在某些很特殊的情況下,需要利用DOS BATCH檔來呼叫 Firefox,在這邊做個筆記。命令列參數如下:

Command Result Example
profile "<path>" Starts with profile located at the given path.
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -profile "E:\myprofile"
P "<profile name>" Starts with a given profile name (profile name is case sensitive). firefox.exe -P "Joel User"
<url> Launches the application and opens the given URL(s). firefox.exe "www.mozilla.org" "www.mozillazine.org"
safe-mode Launches the application with extensions disabled and the default theme.
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -safe-mode
no-remote Enables running multiple instances of the application with different profiles; [1] used with -P
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -no-remote
height <value> Sets height of the startup window to <value>. firefox.exe -height 600
width <value> Sets width of the startup window to <value>. firefox.exe -width 800
ProfileManager Starts with Profile Manager. firefox.exe -ProfileManager
CreateProfile Create a new profile firefox -CreateProfile test
migration Starts the application with the Import Wizard
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox -migration
console Starts the application with a debugging console. firefox.exe -console
jsconsole Starts with the Error Console (Javascript Console). firefox.exe -jsconsole
inspector <url> Starts with the DOM Inspector. firefox.exe -inspector http://www.google.com/
chrome <url> Loads the specified chrome. firefox.exe -chrome chrome://inspector/content/inspector.xul
new-window <url> Loads a URL in a new browser window. firefox.exe -new-window <url>
new-tab <url> Loads a URL in a new tab. firefox.exe -new-tab <url>
install-global-extension "<path>" Installs an extension globally. firefox.exe -install-global-extension "C:\Temp\extension-file.xpi"

 

資料來源:

http://kb.mozillazine.org/Command_line_arguments

arrow
arrow
    全站熱搜

    dragonspring 發表在 痞客邦 留言(0) 人氣()