Jump to content

LSC (Latch) - A Lua based batch system

  • You cannot reply to this topic
No replies to this topic

#1 Ilikemlp123

  • Members
  • 11 posts

Posted 13 October 2017 - 12:09 AM

if you've ever wanted to have batch files or similar in computercraft OR you clicked on this while browsing programs,
I have just the program
Latch 1.0
how it works:
Latch works by opening the selected file in the filesystem, and reading the lines, then it executes the programs listed in sequential order.
ex: run the code
lsc example
Example Script:
cd ..
cd rom
cd programs
cd ../..
How to write a script(for dummies):
  • type edit, and choose a filename. press enter
  • list the programs and their args in sequential order.
  • press ctrl, then press save
  • run lsc <script name>

Feel free to write programs to go with this, or even improve on this program's design
known bugs:
after executing, it ALWAYS says file not found.

Edited by Ilikemlp123, 13 October 2017 - 12:10 AM.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users