How To Add A Script To Startup

Table of contents:

How To Add A Script To Startup
How To Add A Script To Startup

Video: How To Add A Script To Startup

Video: How To Add A Script To Startup
Video: How to run a startup script using systemd 2024, December
Anonim

Scripts can be added to the startup of certain programs. This is not always convenient, given that the Windows operating system interface provides for a special utility to perform the same function.

How to add a script to startup
How to add a script to startup

Necessary

access to the computer

Instructions

Step 1

Write a script to add it to startup using, for example, visual basic. To do this, write in it content similar to the following text: Dim vOrg, objArgs, root, key, WshShell root = "HKEY_CURRENT_USER / Software / Microsoft / Windows / CurrentVersion / Run /" KeyHP = “Program" Set WshShell = WScript. CreateObject ("WScript. Shell") WshShell. RegWrite root + keyHP, "place / autorun" Instead of place, use the directory to the location of your program that you would like to add to the executable script.

Step 2

Please note that when writing custom scripts added to startup, you can also use templates that other users post on various sites and Internet forums, however, be extremely careful with them, because if you do not have the skills to work with malicious scripts, you simply you may not recognize them and add them to your computer.

Step 3

When writing scripts that you will add to autorun in the future, it is best not to turn off the anti-virus system. If you write a script to be added to startup for the purpose of further uploading to the network, do not use malicious code to harm other users, for this there is a certain responsibility.

Step 4

Launching many programs on your computer at startup can be organized much easier than by writing scripts for startup, here just go to the computer control panel and go to the scheduled tasks menu. Set the required system configuration for your computer, and then configure the operation of automatically launched programs. This is often used to turn on the Internet and file download programs, as well as in other cases.

Recommended: