tydeno / Ploto

A Windows PowerShell based Chia Plotting Manager. Lets you automatically spawn and move plots. Sends you notifications on the go.
MIT License
32 stars 5 forks source link

Run this script at startup? #71

Closed Yamanipanuchi closed 3 years ago

Yamanipanuchi commented 3 years ago

How can I go about running this script at startup on a Windows machine?

tydeno commented 3 years ago

You could create a Script that launches Ploto:

Name: LaunchPloto.ps1

Import-Module PathToPlotoModuleOnYourPC
Start-PlotoSpawns

And then create a scheduled Startup Task to launch that script:

$trigger = New-JobTrigger -AtStartup -RandomDelay 00:00:30
Register-ScheduledJob -Trigger $trigger -FilePath C:\Temp\LaunchPloto.ps1 -Name LaunchPlotoSpanwer