Don't like ads? PRO users don't see any ads ;-)
Guest

cmd

By: a guest on May 17th, 2012  |  syntax: Lua  |  size: 0.59 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #exit = 0
  2. shell.run("clear")
  3. print("Adinator Corp. 2012")
  4. print("Wireless-Terminal")
  5. print()
  6. while true do
  7. write(">")
  8. input = read()
  9. -------Zusatz features-----------
  10. if input == "ipconfig" then
  11.  print("Welche Seite ist das Modem oder Kabel?")
  12.  input2 = read()
  13.  rednet.open(input2)
  14.  
  15. elseif input== "clear" then
  16. shell.run("clear")
  17.  
  18. elseif input == "starten" then
  19. print("Welches Programm starten?")
  20. input3 = read()
  21. print("Starte ",input3)
  22. sleep(3)
  23. shell.run(input3)
  24.  
  25.  
  26. else
  27.  print(input," wird gesendet...")
  28.  sleep(1)
  29.  rednet.broadcast(input)
  30.  print("Fertig")
  31.  
  32.  
  33. end
  34. end