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

[LUA] [ERROR] = expected?

Started by Tycoonier, 06 October 2012 - 10:39 PM
Tycoonier #1
Posted 07 October 2012 - 12:39 AM
It keeps popping up errors every time I try to run disk/startup. Here is the code and the error. Would appreciate any help, thanks ;)/>/>
Error:
Spoiler
Code:
Spoiler
If you offer any help, many thanks to you. If you don't, You're mean :D/>/>
Lyqyd #2
Posted 07 October 2012 - 12:42 AM
You can't run shell commands from lua programs (since shell commands aren't lua), but you can use a function that does run shell commands. Try changing all of those copy lines to be a bit like this:


shell.run("copy", "disk/soon", "/soon")

Of course, it's not going to do what you'd like it to do even after that change, since copy can't overwrite existing files.
Goof #3
Posted 07 October 2012 - 12:43 AM
deleted