Jump to content

Autorunning cmd at startup

Go to solution Solved by C2dan88,

Yes, add a .bat file with your commands and place it in your Windows startup folder.

%AppData%/Microsoft\Windows\Start Menu\Programs\Startup

 

Or look into using node-windows

https://www.npmjs.com/package/node-windows

You can run your scripts as windows services so they start automatically on boot.

 

Alternative is a scheduled task.

so i am in the stages of setting up some stuff

 

so when my computer boots i want to run two commands in cmd automatically

the first command changes the directory folder

and the second starts a node js thing (npm start)

 

and i was wondering if that was able to be done and if it is, is there a way to run it in the background so the cmd task isnt in the taskbar

 

Link to comment
https://linustechtips.com/topic/1189738-autorunning-cmd-at-startup/
Share on other sites

Link to post
Share on other sites

Yes, add a .bat file with your commands and place it in your Windows startup folder.

%AppData%/Microsoft\Windows\Start Menu\Programs\Startup

 

Or look into using node-windows

https://www.npmjs.com/package/node-windows

You can run your scripts as windows services so they start automatically on boot.

 

Alternative is a scheduled task.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×