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

I wanna install disk

Started by tbyoran, 07 August 2012 - 08:28 AM
tbyoran #1
Posted 07 August 2012 - 10:28 AM
How can i am make install disk.
Example:

[disk dir]

startup , pr

[disk startup]
Copy pr from disk to computer.


How can i am make Copy from disk to computer but code must be for disk.
Luanub #2
Posted 07 August 2012 - 11:52 AM
To copy a file from one location to another from within a program you will want to use fs.copy()

You will want to use the following syntax to copy from a disk to computer.

fs.copy("disk/filename", "filename")
ardera #3
Posted 07 August 2012 - 11:52 AM
Very easy:
This is the code of "startup":

fs.copy("disk/pr", "/")