使用CMD关闭Firefox的多个配置文件 [英] Close multiple profiles of firefox using CMD

查看:65
本文介绍了使用CMD关闭Firefox的多个配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用命令提示符关闭不同的Firefox配置文件。
我已使用taskkill / IM firefox.exe
但这会关闭所有配置文件。
因为我可以使用
firefox.exe打开默认配置文件-p default -cmd中没有远程。
反正有没有关闭多个个人资料?
请注意-我不想使用PID

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

推荐答案

简短答案:不,不是使用Firefox内置的

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.

或者您可以编写一些Firefox扩展并使用一些IPC来与之沟通。该扩展收到您的IPC消息后,可以彻底关闭Firefox实例。

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.

这篇关于使用CMD关闭Firefox的多个配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆