This PowerShell script allows you to open applications and web pages based on the activity selected by the user (programming, studying, or entertainment).
TaskStarter is an automated tool that optimizes your workflow from the moment you turn on your PC. With just one selection, the system adjusts your environment according to your task, opening the necessary applications and web pages for coding, studying, or leisure. This PowerShell script simplifies your routine, saving time and boosting productivity.
- PowerShell enabled: If you can't run scripts, open PowerShell as administrator and execute:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- Correct program paths: Edit the script to ensure the application paths match your system.
- Download or copy the script into a file with a
.ps1extension, e.g.,startup.ps1. - Edit the script if necessary to update the program paths.
- Run the script in PowerShell:
.\startup.ps1
- Select an option when prompted to choose an activity:
1️⃣for programming2️⃣for studying3️⃣for leisure
To run the script automatically when Windows starts, follow these steps:
- Press
Win + R, typeshell:startup, and pressEnter. This will open the Windows startup folder. - Create a PowerShell shortcut in the startup folder:
- Right-click inside the startup folder and select
New > Shortcut. - In the shortcut location, enter:
(Replace
powershell -ExecutionPolicy Bypass -File "C:\path\to\startup.ps1"C:\path\to\startup.ps1with the actual location of the script on your PC). - Save the shortcut and test it by restarting your PC or double-clicking on the shortcut.
- Right-click inside the startup folder and select
- If you see strange characters in the output, ensure your console is using UTF-8.
- If a program doesn't open, check that the path in the script is correct.
- If the script does not run on startup, verify that the shortcut in the startup folder has the correct path.
You can modify the applications that open or add new options by editing the switch statement in the script.
This script enhances productivity by quickly launching the right environment for each activity. 🚀💻