Reputation: 486
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
Reputation: 5156
You can use the following steps, if you want to start Meteor automatically when a user logs in:
@echo off
cd "<the path to your Meteor project>"
meteor
timeout /t 10
start "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" http://localhost:3000
shell:startup
(or go to: C:\Users\John Doe\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
).Now, when a user logs in, Meteor should start your project and Microsoft Edge should open http://localhost:3000
after 10 seconds.
Upvotes: 3
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