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

Messing With Rom/autorun

Started by steamruler, 25 February 2012 - 06:28 PM
steamruler #1
Posted 25 February 2012 - 07:28 PM
Well, i want to put a file in rom/autorun since that will execute it automaticlly as i require that.

I use

shell.run("cd", "..")
shell.run("cd", "rom")
shell.run("mkdir", "autorun")
shell.run("cd", "..")
shell.run("copy", "logon/autorunfile rom/autorun")

3rd line errors out with ACCESS DENIED and 5th line errors out because of this.
Are there any workarounds?
Casper7526 #2
Posted 25 February 2012 - 07:45 PM
If you want to load an API, you place it in rom/apis

If you want to start a program automatically you name it startup and place it on the root of your computer

You dont need to do anything special.
steamruler #3
Posted 25 February 2012 - 08:10 PM
If you want to load an API, you place it in rom/apis

If you want to start a program automatically you name it startup and place it on the root of your computer

You dont need to do anything special.

Ah, okay! I will try later, can't right now. Will post how it went.

EDIT: It worked :(/>/> THANKS