搜尋 Mozilla 技術支援網站

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

process management: process in foreground

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
more options

Is there a way to keep the firefox process in foreground? I'd like to write a .CMD script which opens a file location where the profiles are stored (a VHD file), mount it, and then launch it with the profile stored up there, something like:

start "firefox" /W "C:\Program Files\Mozilla Firefox\firefox.exe" "-foreground -profile ""%driveletter%\%ffprofile%"""

...but firefox always forks to background. I do not want that, as this batch script needs to close the VHD file after firefox process completes.

How do I keep the process in foreground?

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題