Here are the PowerShell scripts for updating the databases...
Make-MpcOrbDatabase.ps1:
...and Make-MpcCometDatabase.ps1...Code:Push-Location 'C:\Program Files (x86)\Common Files\ASCOM\MPCORB' Invoke-WebRequest -Uri https://minorplanetcenter.net/iau/MPCORB/MPCORB.DAT -OutFile MPCORB.DAT C:\Windows\SysWOW64\cmd.exe /C CScript MakeDB.wsf Pop-Location
...and they have to be scheduled in Windows Task Scheduler like this... The text in the "arguments" field is the path to the powershell script, like this:Code:Push-Location 'C:\Program Files (x86)\Common Files\ASCOM\MPCCOMET' Invoke-WebRequest -Uri https://www.minorplanetcenter.net/iau/Ephemerides/Comets/Soft00Cmt.txt -OutFile CometEls.txt C:\Windows\SysWOW64\cmd.exe /C CScript MakeCometDB.wsf Pop-Location
ScheduleMPC.pngCode:-file C:\Users\Tim\OneDrive\PoshScripts\Make-MpcOrbDatabase.ps1
I schedule them to run every 2 days on alternating days, about mid-morning.




Reply With Quote
