Starting multiple applications on boot with a time delay
I recently moved to a new state away from my team's home office. I will be permanently working from home - using my home desktop as my main work station. I can't code on my home desktop due to intellectual property concerns (this requires remoting into my work servers). However, I can accomplish many of the non-development tasks; check email, response to code reviews, conduct meetings, write papers/drafts, etc. As you can imagine, these tasks take many different applications than I normally use at home. A short list of work-focused applications looks like:
- Skype for Business
- Microsoft Teams
I religiously trim the applications that get startup privileges on my home desktop. I want it to boot quickly and be ready to go within 20 seconds. However, I've also noticed that I forget to launch important applications like Skype and Outlook if they're not launched at boot. This has caused me to miss important meetings - woops.
Thus, I created a delayed task in the task scheduler to run at boot. On my first attempt at this, I added all the programs I wanted to delay launch to the actions tab. However, I noticed that only the first application was ever launch. I have no idea why it didn't launch the other applications but we can get around this by using a batch file.
These steps were done on Windows 10.
- Find a location for your script/batch file. Your documents library is a good place.
- Create a new file and name it something like "StartApplications.bat". The most important thing is to make sure the extension of the file is ".bat" - you may need to make extension visible in order to do this.
- Right-click the file and select "edit"
- For each application you want to start, add a start command on a new line in the batch file.
- Type start "" <path to application>
- Replace <path to application> with an actual path
- Example: start "" "C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"
- Save the file
- Hit the windows key and type "task"
- Task scheduler should be the "best match" - hit enter
- In the "Actions" pane on the right side, click "Create Task"
- Enter a name e.g. "Start Applications"
- Click on the "triggers" tab
- Click the "new" button
- Click the "begin the task" drop down and select "at log on"
- Check "delay task for" and select a desired time. I used one minute.
- Click "Ok"
- Click the "actions" tab and click "new"
- Click "browse" and navigate to your batch file you created
- Click "ok"
- Click "ok"
Restart your computer and see if your applications launch successfully!