Advertisement
HPWebcamAble

[CC] ARC Shortcut Program

Aug 15th, 2014
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. --[[
  2. Coded by HPWebcamAble
  3. http://pastebin.com/u/HPWebcamAble
  4.  
  5. USE THE INSTALLER ON MY PASTEBIN!
  6. This won't do anything by itself
  7.  
  8. Installer Link:
  9. http://pastebin.com/pVyr7LjW
  10. ]]
  11. args = {...}
  12.  
  13. if #args ~= 1 then
  14.   print("Usages:")
  15.   print("rc [run:edit]")
  16.   return
  17. end
  18.  
  19. if args[1] == "run" then
  20.   if not fs.exists("/arc/arc") then
  21.     tc(colors.red)
  22.     print("Failed to locate program 'arc' in directory 'arc'")
  23.     print("Run installer")
  24.     return
  25.   else
  26.     shell.run("/arc/arc")
  27.   end
  28. elseif args[1] == "edit" then
  29.   if not fs.exists("/arc/configeditor") then
  30.     tc(colors.red)
  31.     print("Failed to locate program 'configeditor' in directory 'arc'")
  32.     print("Run installer")
  33.     return
  34.   else
  35.     shell.run("/arc/configeditor")
  36.   end  
  37. else
  38.   print("Usages:")
  39.   print("rc [run:edit]")
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement