Digital Marketing

Run wsl command at startup

Create a bat file to start WSL services in the Windows startup folder

Open the Windows startup folder. For that, simply press Windows Key + R to open the Run box and then type shell:startup and press the Enter key.

Inside the folder right and create a .bat file, such as example.bat:

Put commands you like to run

wsl sudo service mysql start
wsl sudo service apache2 start
aws s3 ls
#start windows terminal
wt.exe

Comments

Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership