Difference between revisions of "Shell.getRunningProgram"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
 
(One intermediate revision by one other user not shown)
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()
 +
}}
 +
}}
 +
 
 +
[[Category:API_Functions]]

Latest revision as of 18:38, 28 November 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()