Skip to main content
format paths
Source Link
ggorlen
  • 59.3k
  • 8
  • 119
  • 173

If I'm not wrong, you can start your application using command line and thus also using a batch file. In that case it is not a very hard task to start it with Windows login.

You just create a batch file with the following content:

node C:\myapp.js 
node C:\myapp.js 

and save it with .bat extention. Here myapp.js is your app, which in this example is located in C: drive (spcify the path).

Now you can just throw the batch file in your startup folder which is located at C:\Users%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

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

Just open it using %appdata%%appdata% in run dailog box and locate to >Roaming>Microsoft>Windows>Start Menu>Programs>Startup

>Roaming>Microsoft>Windows>Start Menu>Programs>Startup 

The batch file will be executed at login time and start your node application from cmd.

If I'm not wrong, you can start your application using command line and thus also using a batch file. In that case it is not a very hard task to start it with Windows login.

You just create a batch file with the following content:

node C:\myapp.js 

and save it with .bat extention. Here myapp.js is your app, which in this example is located in C: drive (spcify the path).

Now you can just throw the batch file in your startup folder which is located at C:\Users%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Just open it using %appdata% in run dailog box and locate to >Roaming>Microsoft>Windows>Start Menu>Programs>Startup

The batch file will be executed at login time and start your node application from cmd.

If I'm not wrong, you can start your application using command line and thus also using a batch file. In that case it is not a very hard task to start it with Windows login.

You just create a batch file with the following content:

node C:\myapp.js 

and save it with .bat extention. Here myapp.js is your app, which in this example is located in C: drive (spcify the path).

Now you can just throw the batch file in your startup folder which is located at

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

Just open it using %appdata% in run dailog box and locate to

>Roaming>Microsoft>Windows>Start Menu>Programs>Startup 

The batch file will be executed at login time and start your node application from cmd.

Source Link
Chetan Bhasin
  • 3.6k
  • 1
  • 25
  • 36

If I'm not wrong, you can start your application using command line and thus also using a batch file. In that case it is not a very hard task to start it with Windows login.

You just create a batch file with the following content:

node C:\myapp.js 

and save it with .bat extention. Here myapp.js is your app, which in this example is located in C: drive (spcify the path).

Now you can just throw the batch file in your startup folder which is located at C:\Users%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Just open it using %appdata% in run dailog box and locate to >Roaming>Microsoft>Windows>Start Menu>Programs>Startup

The batch file will be executed at login time and start your node application from cmd.