ThiagoFonseca 0 Posted April 20, 2017 Share 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 Link to post Share on other sites
2 Michiyo 28 Posted April 20, 2017 Share Posted April 20, 2017 http://ocdoc.cil.li/api:process?s[]=process process.info() should give you the info you need Quote Link to post Share on other sites
0 Solution ThiagoFonseca 0 Posted April 20, 2017 Author Solution Share 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 Link to post Share on other sites
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
Link to post
Share on other sites