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

Starting programs anywhere

Started by svdragster, 14 March 2013 - 06:31 AM
svdragster #1
Posted 14 March 2013 - 07:31 AM
Hello,

I want a program to start in a folder called "/svdragster/programs/" anywhere where I type its name, like CraftOS programs.
Is that possible, or do I need to make a fake shell :P/>
JokerRH #2
Posted 14 March 2013 - 07:50 AM
shell.run("/svdragster/programs/whatever")
or
os.loadAPI( "/svdragster/programs/whatever"),
if I recall correctly.
Lyqyd #3
Posted 14 March 2013 - 07:58 AM
You'll want to look into shell.setPath.
svdragster #4
Posted 15 March 2013 - 05:13 AM
shell.setPath(shell.getPath()..":"..("/svdragster/programs"))

doesn't work, attempt to call nil
theoriginalbit #5
Posted 15 March 2013 - 05:31 AM
shell.path not shell.getPath … got to love inconsistent method names :P/>
svdragster #6
Posted 15 March 2013 - 05:41 AM
shell.path not shell.getPath … got to love inconsistent method names :P/>

:3 thanks