ThiagoFonseca Posted April 20, 2017 Posted April 20, 2017 In computercraft there is this command: shell.getRunningProgram() This command returns the path and filename of the program that executed it. I wonder if there's a command in OpenComputers that does the same Quote
0 ThiagoFonseca Posted April 20, 2017 Author Posted April 20, 2017 11 minutes ago, Michiyo said: http://ocdoc.cil.li/api:process?s[]=process process.info() should give you the info you need Worked! But to get the exact result that I was aiming for I had to use shell.resolve(process.info().path) This returns me the full path of the file with extension Quote
2 Michiyo Posted April 20, 2017 Posted April 20, 2017 http://ocdoc.cil.li/api:process?s[]=process process.info() should give you the info you need Quote
In computercraft there is this command:
This command returns the path and filename of the program that executed it.
I wonder if there's a command in OpenComputers that does the same