process management: 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?