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

Copy Error "= expected"

Started by PedroBarbosa, 12 December 2012 - 08:22 AM
PedroBarbosa #1
Posted 12 December 2012 - 09:22 AM
Hey
Here is my code:


function copy()
cp disk/LumberJ .
end

And i have a error:

bios:338: [sting "startup"]:2: '=' expected

Anyone can help please?
PixelToast #2
Posted 12 December 2012 - 09:25 AM
you cant run shell commands from lua
use fs.copy

fs.copy("source","destination")
PedroBarbosa #3
Posted 12 December 2012 - 09:37 AM
you cant run shell commands from lua
use fs.copy

fs.copy("source","destination")

Thanks!