user1255102
user1255102

Reputation: 486

Start local meteor app after windows boot

A local meteor (1.2) application should get started in the background right after windows has been booted. What are my options to get the job done?

Upvotes: 0

Views: 763

Answers (2)

Matthias A. Eckhart
Matthias A. Eckhart

Reputation: 5156

You can use the following steps, if you want to start Meteor automatically when a user logs in:

  1. Create a batch file.
  2. Open the newly created batch file and place the following lines into it:

@echo off
cd "<the path to your Meteor project>"
meteor
timeout /t 10
start "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" http://localhost:3000
  1. Create a shortcut:

Batch-Shortcut

  1. Open the Run window (Win + R).
  2. Open shell:startup (or go to: C:\Users\John Doe\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup).
  3. Copy the shortcut into the folder.

Now, when a user logs in, Meteor should start your project and Microsoft Edge should open http://localhost:3000 after 10 seconds.

Upvotes: 3

Cody Gray
Cody Gray

Reputation: 244812

Applications cannot run without a user being logged in. So "started in the background right after windows has been booted" is not something that is going to happen. You would need a service for that, and services are not interactive. Assuming that you're talking about the Meteor JS framework, you can't build a service out of that.

If you're talking about starting an application when a user logs in, then you can do that easily by adding a shortcut to the executable to the user's "Startup" folder. On modern versions of Windows, the path would be something like:

C:\Users\UserName\AppData\Local\Microsoft\Windows\Start Menu\Programs\Startup

Upvotes: 1

Related Questions