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

Programs Directory?

Started by Noodle, 09 April 2012 - 12:57 AM
Noodle #1
Posted 09 April 2012 - 02:57 AM
Where are all of the computer craft's programs stored?
I want to make a full directory copy, all I need it programs.
I don't mean the rom\programs. I mean the stored ones that are made.
Example: You make a program named snake. It's the game snake. I want to download it onto my disk. Whats the directory for snake?
It's not rom/programs.
It's what?
Luanub #2
Posted 09 April 2012 - 03:19 AM
Is it saved in the computers root directory? if so its in the .minecraft/saves/world_name/computer/computer_id folder for ssp or for smp its server_dir/world/computer/computer_id

from the computer in MC root == /

tekkit may be different
Noodle #3
Posted 10 April 2012 - 03:35 AM
Not that..
I mean in-game

Running disk/startup
——————————————
fs.copy("N-Mail", "N-Mail") – This doesn't work.

I have N-Mail on the disk, I run the disk's startup and want to copy n-mail to the computer. Not the disk.
Luanub #4
Posted 10 April 2012 - 03:41 AM
You need the absolute paths in the fs.copy(). so..


fs.copy("disk/N-Mail", "/N-Mail")

Where disk is will be the mount path of the disk you are using, and the / infront of the second N-Mail should be pointing to the root directory of the computer which is as I stated above.. /
Xtansia #5
Posted 10 April 2012 - 03:43 AM
All paths are relative to the base dir of the computer - "/"
So the file on the disk will be "disk/N-Mail"
Noodle #6
Posted 10 April 2012 - 03:50 AM
Nvm fixed..


For future
fs.copy("disk/whateverprogram", "nameoncomputer")