You can automatically start processes during logon in a lot of ways (Trojans/Viruses find new ways all of the time).
The easiest way is to create a shortcut in one of the Startup
folders. There are two of them: one for all the users, and one for the current user. Depending on your locale, Explorer can show a translated name, but the actual folder is named either of these:
"%AllUsersProfile%/Start Menu\Programs\Startup"
"%AppData%\Microsoft\Windows\Start Menu\Programs\Startup"
The folders do not exist at first, but are created when software starts putting shortcuts in them.
For a manual process, I created the two batch files below that create, then go to them (in both the console and explorer).
From there you can add shortcuts to things you want to run during logon.
They are based on:
- [WayBack] login – Automatically run a script when I log on to Windows – Super User
- [WayBack] batch file – auto run a bat script in windows 7 at login – Stack Overflow
I have successfully tested them in various Windows versions up until 10.
–jeroen
Batch files:
:: https://stackoverflow.com/questions/16087694/auto-run-a-bat-script-in-windows-7-at-login | |
:: https://superuser.com/questions/15596/automatically-run-a-script-when-i-log-on-to-windows | |
call :do "%AllUsersProfile%/Start Menu\Programs\Startup" | |
goto :eof | |
:do | |
mkdir %* | |
pushd %* | |
explorer /e,. |
:: https://stackoverflow.com/questions/16087694/auto-run-a-bat-script-in-windows-7-at-login | |
call :do "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup" | |
goto :eof | |
:do | |
mkdir %* | |
pushd %* | |
explorer /e,. |