Search Support

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

how to quit firefox in command line

  • 13 freagra
  • 5 leis an bhfadhb seo
  • 186 views
  • Freagra is déanaí ó Pj

more options

Hi, How to quit/close firefox properly in command line ty

All Replies (13)

more options

Open your Windows help and check out this command; TASKKILL Use this command Very carefully.

Open a command window using cmd.exe Then type TASKKILL /?

TASKKILL /T /F /IM Firefox.exe

more options

ty it's work on windows (the / F is not needed if you want a clean closure, right?)

I admit that I would have preferred an internal solution to firefox (an option like "firefox -quit" or "firefox -close" but apparently it does not exist!)

[I use a portable version of firefox, so everything that depends on the host system often causes me a problem and this kind of closure bypasses the launcher that records data]

But thanks to you

more options

Glad to help. Safe Surfing.

Note that the /F option forces the program to close if the program is not responding/locked/frozen.


Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily.

Thank you for contacting Mozilla Support.

more options

Totoche2607 said

Details of TaskKill:

At the Command Prompt:

TaskKill /? >Choice-of-File-Directory-Here\TaskKill.txt


~Pj

more options

I have 9 procesus firefox.exe running when i do : TASKKILL /T /IM Firefox.exe only 8 are closed so i have to do TASKKILL /T /F /IM Firefox.exe...

But one time on 2 or 3 that's not close ff properly...when i restart i have the crash/restore windows...

I don't understand why there is no -quit / -close option (can we propose thart kind of thing in bugzilla?)

more options

Totoche2607 said

I don't understand why there is no -quit / -close option
(can we propose thart kind of thing in bugzilla?)

If you want to leave feedback for Firefox developers, you can go to the Firefox Help menu and select Submit Feedback... or use this link. Your feedback gets collected by a team of people who read it and gather data about the most common issues.

more options

Why are you using TASKKILL instead of using Exit from inside Firefox, either:

  • "3-bar" menu button > Exit
  • (menu bar) File > Exit

Killing processes risks corrupting files in use by Firefox.

more options

jscher2000 said

Why are you using TASKKILL instead of using Exit from inside Firefox

I just want to quit firefox "properly" in command line... and try solution that I was offered here ...

more options

Totoche2607 said

jscher2000 said
Why are you using TASKKILL instead of using Exit from inside Firefox

I just want to quit firefox "properly" in command line... and try solution that I was offered here ...

Why do you want to use the Windows command line for this?

more options

jscher2000 said

Totoche2607 said
jscher2000 said
Why are you using TASKKILL instead of using Exit from inside Firefox

I just want to quit firefox "properly" in command line... and try solution that I was offered here ...

Why do you want to use the Windows command line for this?

Maybe for when it gets locked-up and to force it to close? I dunno.

I do a hard reboot when Windows-7 locks up at times, especially if I have Windows Media Center running. I haven't used WMC lately, so it's been quite a while since I've had a hard freeze-up.

Maybe WMC got updates in the last few years and works better?


~Pj

more options

This is not my reason; Mine is not more important than the dozens of those who need this option that you can find on different forum where this question is asked (and where dirty solutions are proposed)

For me, it is a program that will have to launch a portable firefox instance and thus first cleanly shut down any firefox that is already running; and at the end of the program close this portable instance, also cleanly, to be able to eject the removable media on which the program runs and to restart the version of firefox "in hard" which turned at the beginning.

more options

Having a single command to close firefox at the command line interface whether on Linux, Windows, or iOS would be helpful.

firefox -no-remote -save-session -close UserProfile3 firefox -no-remote -save-all-sessions -exitallprofiles

more options

Totoche2607 said

I have 9 procesus firefox.exe running when i do : TASKKILL /T /IM Firefox.exe only 8 are closed so i have to do TASKKILL /T /F /IM Firefox.exe... But one time on 2 or 3 that's not close ff properly...when i restart i have the crash/restore windows... I don't understand why there is no -quit / -close option (can we propose that kind of thing in Bugzilla?)

Late Reply (Grin)

In the past when IE and later FF would lock, and since with Quantum FF, I'd do an End Process Tree in Task Manager with any one FF Process I chose. That closes/ends all the FF Processes.

I did a FireFox.exe /? (while running FF) at the Command Line Prompt and nothing came back in the way of command-line parameters.


~Pj