In this post I will show you how to make an executable open when Windows starts, adding its shortcut to a special directory called Startup folder.

Thanks to this, as soon as the computer starts, the executable will be opened, regardless of its origin.

Step 1: put executable in safe folder

The executable that we are going to open at the beginning must be placed in a safe folder or a folder that we know that it will not be very frequented; for example, you don’t have to put it in Downloads or Documents, but in a more protected folder.

In my case I am going to place it in C:\Users\user\AppData\Roaming\Parzibyte where user is my username and Parzibyte is a folder that I just created.

Inside the folder I have placed an executable, which is my plugin for tickets, although in your case it could be any other file with an exe extension.

Ubicación del ejecutable para iniciar con Windows

Note: if the program you want to run at startup is already in Program Files (or another folder) or if you think that no one is going to delete it, this step is not necessary.

Step 2: create desktop shortcut

Once we have the file copied to the path, it is time to create a shortcut. To do this, we right-click and select Send to desktop (create direct access)

With this we have created a shortcut to our program, which for now lives on the desktop but which we are going to copy to another directory.

Step 3: open startup directory

Now we have to open the directory where we are going to place our direct access; In order to not get lost in locating it, simply press Windows + R and in the window that appears, execute:

shell:startup

As seen in the image:

Abrir directorio startup

That will open a folder which in my case is at:

C:\Users\usuario\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

(remember that it is better to use the command that I indicate)

Within that directory there must be other shortcuts (probably).

Step 4: copy startup shortcut

Now we must copy the shortcut that we have on the desktop to the folder that has just been opened. In my case it looks like this:

Ejecutable agregado a startup de WindowsMy shortcut is plugin_impresora_termica_64_bits.exe.

And that’s it, now every time the computer starts, our executable will be opened. If you want you can restart your computer and check it.

Checking execution at startup

In my case I restarted my computer and the plugin actually ran. Also, in the Task Manager on the Startup tab, my plugin was listed:

Programa al iniciar WindowsSo everything works perfectly and with this we can add any executable when starting Windows.


I am available for hiring if you need help! I can help you with your project or homework feel free to contact me.
If you liked the post, show your appreciation by sharing it, or making a donation

Suscribir por correo

Ingresa tu correo y recibirás mis últimas entradas sobre programación, open source, bases de datos y todo lo relacionado con informática

Join 2,601 other subscribers


parzibyte

Freelancer programmer ready to work with you. Web, mobile and desktop applications. PHP, Java, Go, Python, JavaScript, Kotlin and more :) https://parzibyte.me/

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

%d bloggers like this: