X
Tap here to go to the mobile version of the site.

Support Forum

how to quit firefox in command line

Posted

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

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

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

More Information

FredMcD
  • Top 10 Contributor
3771 solutions 52118 answers

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

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
Was this helpful to you? 1
Quote

Question owner

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

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
Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
3771 solutions 52118 answers

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.

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.
Was this helpful to you? 0
Quote
Pj
  • Top 25 Contributor
10 solutions 256 answers

Totoche2607 said

Details of TaskKill:

At the Command Prompt:

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


~Pj

''Totoche2607 [[#answer-1163214|said]]'' <blockquote> </blockquote> Details of TaskKill: At the Command Prompt: TaskKill /? >Choice-of-File-Directory-Here\TaskKill.txt ~Pj
Was this helpful to you?
Quote

Question owner

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?)

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?)
Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
3771 solutions 52118 answers

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.

''Totoche2607 [[#answer-1164284|said]]'' <blockquote> I don't understand why there is no -quit / -close option<br> (can we propose thart kind of thing in bugzilla?) </blockquote> If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://qsurvey.mozilla.com/s3/FirefoxInput/ this link]. Your feedback gets collected by a team of people who read it and gather data about the most common issues.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7869 solutions 64142 answers

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.

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.
Was this helpful to you?
Quote

Question owner

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 ...

''jscher2000 [[#answer-1164490|said]]'' <blockquote> Why are you using TASKKILL instead of using Exit from inside Firefox </blockquote> I just want to quit firefox "properly" in command line... and try solution that I was offered here ...
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
7869 solutions 64142 answers

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?

''Totoche2607 [[#answer-1164601|said]]'' <blockquote> ''jscher2000 [[#answer-1164490|said]]'' <blockquote> Why are you using TASKKILL instead of using Exit from inside Firefox </blockquote> I just want to quit firefox "properly" in command line... and try solution that I was offered here ... </blockquote> Why do you want to use the Windows command line for this?
Was this helpful to you?
Quote
Pj
  • Top 25 Contributor
10 solutions 256 answers

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

''jscher2000 [[#answer-1164647|said]]'' <blockquote> ''Totoche2607 [[#answer-1164601|said]]'' <blockquote> ''jscher2000 [[#answer-1164490|said]]'' <blockquote> Why are you using TASKKILL instead of using Exit from inside Firefox </blockquote> I just want to quit firefox "properly" in command line... and try solution that I was offered here ... </blockquote> Why do you want to use the Windows command line for this? </blockquote> 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
Was this helpful to you?
Quote

Question owner

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.

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.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.