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

Is there a way to stop people from editing a startup file?

Started by EmTeaKay, 20 April 2012 - 11:14 PM
EmTeaKay #1
Posted 21 April 2012 - 01:14 AM
Like the title says, is there a way to stop someone from editing a startup file?

EDIT: I found a way to do it. Just make a new file called "edit startup" and then fill in what you want. So you'd type in this code

edit edit startup

Also, thanks for the (lack of) help!
cant_delete_account #2
Posted 21 April 2012 - 01:24 AM

edit edit startup
Will make a program called 'edit', you can't have spaces in program names, therefore noone can use the edit program.
OminousPenguin #3
Posted 21 April 2012 - 01:56 AM
Off the top of my head, copy programsedit and modify it so it doesn't allow editing the startup file. Then you might want to edit other programs to hide what you've done.
EmTeaKay #4
Posted 21 April 2012 - 10:41 PM

edit edit startup
Will make a program called 'edit', you can't have spaces in program names, therefore noone can use the edit program.

But if I wanted to make a door lock, then this would be perfect. As they wouldn't be able to see in to my files.
ComputerCraftFan11 #5
Posted 21 April 2012 - 11:48 PM
I just made a program called "Edit + Program Lock" just for this
Robd #6
Posted 24 April 2012 - 02:58 AM
Am I missing the point here or would "delete edit" ruin this scheme? (as well as making a new directory, cding to it, and then calling edit from there, or renaming the edit file)