![]() The location of this folder on Windows is: %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup On Windows, the simplest way of running a program at startup is to place an executable file in the Startup folder.Īll the programs that are in this folder will be executed automatically when the computer opens. We don’t want to open the command prompt and run this script manually every time we open the computer, but rather to have it run automatically for us. ![]() The command that must be run to perform this action is my-super-script startup do-logic. Therefore let’s say that we want to create a CLI application, named my-super-script that each time you open your computer will log the current time in a. To keep everything as general as possible, we will explain the theory behind this process using an imaginary use case. With no other unnecessary talk, here is how I did it and how you can implement it for yourself ? The end goal While for Linux distributions I found a lot of resources about how to implement this startup behavior, for Windows things were a little more complicated as it was not a straightforward process. ![]() While developing this tool I got to the part where I had to implement a feature that would make this script to be executed at startup. Recently I worked on a CLI tool meant to be used as a backup application.
0 Comments
Leave a Reply. |