Search Support

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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

process management: process in foreground

  • Akukho zimpendulo
  • 1 inale nkinga
  • 1 view
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?

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?