0

I am using taskkill /f /im firefox.exe to forcibly restart Firefox that has multiple tabs open. It terminates the application, but when it reopens, it shows crash error.

Is there any way to terminate Firefox cleanly/gracefully so it does not prompts that message next time it opens?

Jeremy
  • 2,642
  • 18
  • 36
Imsa
  • 1,105
  • 2
  • 17
  • 39
  • Assuming this is a programming question, try searching on "UI automation", or failing that, you could try sending an ALT-F4 via SendInput(). – Harry Johnston Jun 03 '15 at 22:19
  • I've had experience with a similar scenario on Linux. Harry's suggestion of sending keystroke input is the only way I have found to terminate Firefox gracefully. – Jeremy Jun 04 '15 at 00:32

1 Answers1

0

Using /t instead of /f solved the problem.

Imsa
  • 1,105
  • 2
  • 17
  • 39