FoxOS

.mkdir

Feb 8th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Creatore di Cartelle - FoxOS")
  4. print("")
  5. print("[Y] Per creare una cartella\n[N] Per uscire")
  6. local event, key = os.pullEvent("key")
  7. local tasto = keys.getName(key)
  8. if tasto == "y" then
  9.    print("\nInserisci il nome della cartella da creare")
  10.    local nome = read()
  11.    shell.run("mkdir "..nome)
  12.    shell.run(".FoxOS/.menu")
  13. else
  14.    shell.run(".FoxOS/.menu")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment