Difference between revisions of "Shell.getRunningProgram"

From ComputerCraft Wiki
Jump to: navigation, search
(Added more information)
Line 1: Line 1:
shell.getRunningProgram() is an API part of the shell API. It gets the path the program is running from.
+
{{lowercase}}
 +
{{Function
 +
|name=shell.getRunningProgram
 +
|returns=Path of the currently running program
 +
|api=shell
 +
|addon=ComputerCraft
 +
|desc=Returns the path of the currently running shell or program.
 +
|examples=
 +
{{Example
 +
|desc=Returns the path of the currently running shell or program.
 +
|code=shell.getRunningProgram()
 +
}}
 +
}}

Revision as of 21:20, 16 August 2012


Grid Redstone.png  Function shell.getRunningProgram
Returns the path of the currently running shell or program.
Syntax shell.getRunningProgram()
Returns Path of the currently running program
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Returns the path of the currently running shell or program.
Code
shell.getRunningProgram()