Quipex

Disk/launcher

Apr 22nd, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. shell.setPath( ".:/rom/programs" )
  2. help.setPath( "/rom/help" )
  3.  
  4. shell.setAlias( "ls", "list" )
  5. shell.setAlias( "dir", "list" )
  6. shell.setAlias( "cp", "copy" )
  7. shell.setAlias( "mv", "move" )
  8. shell.setAlias( "rm", "delete" )
  9.  
  10. if fs.isDir('/mem/autorun') then
  11. local files = fs.list('/mem/autorun')
  12. table.sort(files)
  13. for k, file in ipairs(files) do
  14. local path = fs.combine('/mem/autorun', file)
  15. if not fs.isDir(path) then
  16. shell.run(path)
  17. end
  18. end
  19. end
Add Comment
Please, Sign In to add comment