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

Disk Programs

Started by tbyoran, 03 August 2012 - 12:00 PM
tbyoran #1
Posted 03 August 2012 - 02:00 PM
I wanna automatic copy disk program.

Beacause when i put disk and reboot computer , disk startup copy to computer startup

How can i am make it?
KaoS #2
Posted 03 August 2012 - 02:12 PM
edit disk/startup:


if fs.exists("startup") then
fs.delete("startup")
end
fs.copy("disk/startupstored","startup")
SavinaRoja #3
Posted 03 August 2012 - 02:17 PM
An important tool for this job is the Fs API. http://computercraft.info/wiki/index.php?title=Fs_(API) Using that, you should be able to figure out how to make the script that you want.