- Solved
- Archived
Is there a correct way to close Firefox from a .bat file
Hi, I am on windows 10/FF 78.01 and I have a batch file that on closure saves many things to another disk. Recently I added the saving of my Firefox profiles folder. I ha… (read more)
Hi,
I am on windows 10/FF 78.01 and I have a batch file that on closure saves many things to another disk. Recently I added the saving of my Firefox profiles folder. I had read that when exporting/saving this folder one should ensure that Firefox is closed. Is there a tidy way of closing Firefox in my .bat script?
Currently I am using the cmd taskkill /F /IM firefox.exe but I notice that when I reload Firefox it restarts pretty well exactly where it left off rather than starting with my standard set of tabs as defined in my option 'Use current pages'. It's not a big deal but it would nice to know if there is a correct way to close FF that gives the same restart result as when I do a manual hit 'x' /Close n tabs. Thank you
edited to correct the leading lines spaces, to allow content to wrap properly