Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CreateShortcut(path,name,image)
- local file = fs.open(fs.combine("os/Desktop_Shortcuts",name..".lnk"),"w")
- file.writeLine(path)
- file.writeLine(name)
- file.writeLine(image)
- file.close()
- end
- function LoadVideo(path,x,y)
- shell.run("os/System/Programs/VideoPlayer.lua",x,y+1)
- end
- function getPath(fileName)
- local Path = shell.resolve(fileName)
- return Path
- end
- function osPaths()
- local file = fs.open("os/Directorys.txt","r")
- print("=====System=Operation=Files=====")
- print(file.readLine())--boot
- print(file.readLine())--settings
- print(file.readLine())--API doc
- print(file.readLine())--API Folder
- print(file.readLine())--Desktop shortcut folder
- print("=boot=files=")
- local list = fs.list("boot")
- for i = 1, #list do
- print("_"..list[i])
- end
- file.close()
- end
- function systemInfo()
- print("====System=Info====")
- local content
- local file = fs.open("os/systemCertificate.txt","r")
- print("==OS=Info==")
- print("version: "..file.readLine())
- print("device id: "..file.readLine())
- print("date of installation: "..file.readLine())
- print("package: "..file.readLine())
- print("========================")
- file.close()
- end
Add Comment
Please, Sign In to add comment