Another good place to ask is tenforums.com.
Windows CMD opened application using START - application closes when CMD window closes.
In my environment I cannot do anything until I'm connected to my company's VPN. So, there are several apps that I don't want to start until I'm connected: Outlook, OneDrive and Teams. I created a simple BAT file that I execute after I am connected. (I've been using this for years).
After some update, Outlook and OneDrive start as usual, but Teams opens and then close.
I did some testing and it appears that Teams is staying connected to the CMD window and when it closes, Teams closes. Here's the code:
echo Launching Outlook
start "" "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"
echo Launching Teams
start "" "%LOCALAPPDATA%\Microsoft\Teams\current\Teams.exe"
echo Launching OneDrive
start "" "C:\Program Files\Microsoft OneDrive\OneDrive.exe"
echo Startup Application Launches Complete... .
echo Pausing 5.
timeout /t 5
exit
WORKAROUND - I can create a separate BAT file that I use the START /MIN on but I still want to know ****!
Windows for home | Windows 10 | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
2 answers
Sort by: Most helpful
-
John DeV 164.9K Reputation points Independent Advisor
2023-04-18T13:20:23+00:00 Hello CTFlorian,
Good day! I'm John DeV a Windows user like you and I'll be happy to assist you today.
I want to apologize that this is just a consumer forum for home users. Due to the scope of your question, it is best to ask this on Microsoft Site Q&A which is a technical community platform where most of the members were IT professionals that would greatly help you with the issue.
Microsoft Site Q&A
https://learn.microsoft.com/en-us/answers/quest...
Kind regards,
John DeV
Independent Advisor