Jump to content




Copy Error "= expected"


  • You cannot reply to this topic
2 replies to this topic

#1 PedroBarbosa

  • Members
  • 27 posts

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?

#2 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 12 December 2012 - 09:25 AM

you cant run shell commands from lua
use fs.copy
fs.copy("source","destination")


#3 PedroBarbosa

  • Members
  • 27 posts

Posted 12 December 2012 - 09:37 AM

View PostPixelToast, on 12 December 2012 - 09:25 AM, said:

you cant run shell commands from lua
use fs.copy
fs.copy("source","destination")

Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users