

Look, what you call "advise" and promoting a program is just me trying to share the only two options I could find that would shutdown firefox from the command-line. Malliz wrote:You obviously have no idea what tasks Firefox goes through when shutdown correctly and yet you still decided to give inherently bad advice on a public forum to promote a free program please don't do that. I am using it as part of a backup script and firefox must be closed to perform a full backup. If you are reading this, then you have your specific reasons for wanting to close firefox from a command line. It includes a CHM file that contains examples and seems to include all possible uses of NIRCMD.

It does almost everything that you had always wished DOS could do. NIRCMD has an additional advantage in that it is a Swiss Army knife of programs. I've tried to research this possibility but didn't turn up anything.Īs mentioned, since NIRCMD and TASKKILL are generic programs, they can be used on any other running program. A disadvantage MAY (a guess on my part) is that it could corrupt a firefox file that is being updated at the moment (e.g. This had the advantage of working without an additional piece of software and not requiring a change in Firefox tab options. Now, a command line of " nircmd.exe closeprocess firefox.exe " will gracefully close Firefox.įor TaskKill: All you have to do is, at the command line, enter " TASKKILL /F /IM firefox.exe /T ". Run firefox and in "Options" insure the warnings for closing tabs are NOT selected (it will prevent closing). Put nircmd.exe in a convenient location, like C:\Windows (Note: nircmd.exe, uses a message box for errors while nircmdC.exe doesn't, that's the only difference). The second uses TaskKill which is a native Windows 7 process.įor NIRCMD: You need to download the file from. The first method requires using a free, small (43 kb), DOS enhancer program called NIRCMD. However, I've found two methods that can be used to close it (or any other program) from a command line/prompt.

Firefox for Windows doesn't have a command line option to close it.
