This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Honeyphos123's profile picture

Program Updater

Started by Honeyphos123, 14 July 2015 - 02:16 PM
Honeyphos123 #1
Posted 14 July 2015 - 04:16 PM
this is a simple program I made that updates the program(s) selected by deleting and reinstalling it from pastebin code(s) supplied

It also has an on/off toggle in the code

http://pastebin.com/hmXKh9Xs
H4X0RZ #2
Posted 14 July 2015 - 05:23 PM
I like the idea, but when using this script with bigger programs (which need multiple files and some of them are images) it will "break" because your program runs every downloaded file, and if the file is an image, it will erorr. maybe add a variable which acts as "start-point" which tells your program which script to run after updating?
Honeyphos123 #3
Posted 19 August 2015 - 12:11 AM
ok im working on it right now

alright i fixed it
on line 13 put the name of the program that u want to run after they update :)/>
i dont reccomend puting this program as a startup i would reccomend naming it something like update so if u want to update the programs u can when u want to