How do I add program shortcuts or scripts to startup items to achieve self-startup?
How do I add program shortcuts or scripts to startup items to achieve self-startup?
©Lander Zhang focuses on on-demand IT infrastructure operation and maintenance services for foreign enterprises, and IT Helpdesk hands-on training practitioners
Blog: https://blog.51cto.com/lander
Practical training course for IT Helpdesk engineers: https://edu.51cto.com/lecturer/733218.html
Easy entry into foreign companies: the way for IT Helpdesk engineers to practice and self-study: https://blog.51cto.com/lander/2413018
Last updated: 2019-8-22
Scene description
In daily practice, we need an application or script to start or run automatically when the user logs in. For example, when OneDriver is installed and configured by default, it creates a folder locally where users can store files or folders. We specially map the OneDriver to the cost locator through scripts to make it more convenient for users.
Solution method
So how do we put this script in the startup item to run automatically after the user logs in? Here, taking Windows 10 as an example, I can just put a script that needs to be run automatically (or an application shortcut that needs to be started) into the startup item.
Operation steps
Copy the script file to the following path under the system disk:
C:\ ProgramData\ Microsoft\ Windows\ Start Menu\ Programs\ Startup
If you log out and log in again, the script starts to run during the login process of the system to map OneDriver to O disk:
Related documents
How do I map a local folder to a hard drive letter? Https://blog.51cto.com/lander/2313720