Difference between revisions of "Shell.resolveProgram"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{Function |name=shell.resolveProgram |args=string program |api=shell |returns=string path |addon=ComputerCraft |examples={{Example |desc=Gets the absolute pat...")
 
 
Line 5: Line 5:
 
  |returns=[[string]] path
 
  |returns=[[string]] path
 
  |addon=ComputerCraft
 
  |addon=ComputerCraft
 +
|desc=Gets the absolute path to the program
 
  |examples={{Example
 
  |examples={{Example
   |desc=Gets the absolute path to the program
+
   |desc=Finds the path to default program "hello"
 
   |code=shell.resolveProgram("hello")
 
   |code=shell.resolveProgram("hello")
 
   |output=rom/programs/computer/hello
 
   |output=rom/programs/computer/hello

Latest revision as of 02:17, 14 July 2013

Grid Redstone.png  Function shell.resolveProgram
Gets the absolute path to the program
Syntax shell.resolveProgram(string program)
Returns string path
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Finds the path to default program "hello"
Code
shell.resolveProgram("hello")
Output rom/programs/computer/hello