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

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

process management: process in foreground

  • Gan freagra
  • 1 leis an bhfadhb seo
  • 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?