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

how to copy from floppy to computer?

Started by masqurade99, 15 June 2014 - 09:13 AM
masqurade99 #1
Posted 15 June 2014 - 11:13 AM
I know the code cp /disk/filename /filename but is there a way that I can send the floppys startup file to replace the computers when it boots up? You would think all you would have to do is

cd disk
edit startup
cp /disk/startup /startup
ctrl + s
ctrl + e
ctrl + r

but no, the error I get is "bios:206: [string "startup"]:1:1 '=' expected

is there a way to do this or am I wasting my time? If there is can someone tell me how? :P/>
Lyqyd #2
Posted 15 June 2014 - 11:15 AM
"cp disk/startup startup" isn't valid lua code, it's a shell command.

Try this instead:


fs.copy("/disk/startup", "/startup")
masqurade99 #3
Posted 15 June 2014 - 09:08 PM
"cp disk/startup startup" isn't valid lua code, it's a shell command. Try this instead:
 fs.copy("/disk/startup", "/startup") 

That works. Thanks!