Auto Update of Windows Headless
Posted: Sat Sep 10, 2016 4:13 pm
As the title suggests is there a way to update the Headless verison of Factorio on Windows via Command line? Reason being I have a headless Windows Server and have to have a copy of the Zip version of Factorio on my Laptop so I can run it to update it instead of having to download the full Zip again and extract it over the top which takes longer.
I tried to use the command Oxyd posted on viewtopic.php?f=49&t=14395 after installing WGET and having Curl in its own folder in the Factorio folder but it gets to and then Command Prompt just says: which I can fully understand since "sed" isn't a normal Windows Command.
The full code I am tyring to use is
Obviously I've put my Factorio Username and Token in but removed it for the purposes of posting here. Do I need the stuff at the end or is there some other method to update Factorio on my Headless Windows server that will save me a lot of time and effort when updating Factorio.
I tried to use the command Oxyd posted on viewtopic.php?f=49&t=14395 after installing WGET and having Curl in its own folder in the Factorio folder but it gets to
Code: Select all
| sed -n 's/\["\(.*\)"\]/\1/p')
Code: Select all
'sed' is not recognized as an internal or external command,
operable program or batch file.
The full code I am tyring to use is
Code: Select all
wget -O update.zip --no-check-certificate $(curl "https://www.factorio.com/updater/get-download-link?username=${Username}&token=${token}&package=core-win64&from=0.14.3&to=0.14.4&isTarget=true&apiVersion=2" | sed -n 's/\["\(.*\)"\]/\1/p')