Close multiple profiles of firefox using CMD

北城以北 提交于 2020-01-07 06:35:51

问题


I want to close different profiles of firefox using command prompt. I have used taskkill /IM firefox.exe But this closes all the profiles. As I can open default profile using firefox.exe -p "default" -no-remote in cmd. Is there anyway to close multiple profiles ??? Please note--I don't wanna use PIDs


回答1:


Short answer: No, not with Firefox's built-in capabilities.

Long answer: Maybe, given you find or write a proper tool.

Such a tool could either inspect the process command line and parse out the profile name and then taskkill the processes that match your criteria.

Or you could write some Firefox extension and use some IPC to communicate with that. When the extension receives your IPC message it could shut down the Firefox instance cleanly.



来源:https://stackoverflow.com/questions/28674066/close-multiple-profiles-of-firefox-using-cmd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!