I have created a small batch file to daily some of the programs that I use daily. So when I connect to the office network, and connection succeeds I start the batch by clicking on a shortcut I have created on my desktop.
Here is the batch file:
@ECHO ON REM Start daily used programs REM Outlook START "C:\Program Files (x86)\Microsoft Office\Office12" OUTLOOK.EXE REM Communicator/Lync START "C:\Program Files (x86)\Microsoft Lync" /MIN communicator.exe REM Notepad++ START "C:\apps\dumps\NotePad++6.2.2" /MIN "C:\apps\dumps\NotePad++6.2.2\notepad++.exe" REM Firefox START "C:\Program Files (x86)\Mozilla Firefox" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" REM Chrome START "C:\Program Files (x86)\Google\Chrome\Application" /MIN chrome.exe START "C:\apps\dumps\Sysinternals Suite" /MIN "C:\apps\dumps\Sysinternals Suite\procexp64.exe" /t REM Reconnect to mapped network drives REM Y drive net use Y: /DELETE net use Y: \\shared_drive\ayusman REM Z drive net use Z: /DELETE net use Z: \\smartshare\ayusman REM Open a explorer window, since all the network drives have been re connected. START Explorer.exe \ REM Open an IE window as well. START IEXPLORE.EXE EXIT
After starting the batch files, all programs open successfully. However sometime the batch command window does not exit and just lingers around. If I close the command window; no other program is closed, but the firefox instance just exits immediately. Other programs opened using the batch file remain open and operational.
Questions: Is there a reason why the command prompt does not close automatically? Why is the firefox process the only one that gets affected?
System information: Windows 7 enterprise edition.