Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local Name = tArg[1]
- local Path = tArg[2]
- local Type = tArg[3]
- local Image = tArg[4]
- if Image == nil then
- Image = "os/System/Files/Images/defaultIcon.nfp"
- end
- local file
- if Type == "Desktop" then
- file = fs.open("os/SystemFiles/DesktopShortcuts.txt","a")
- elseif Type == "Taskbar" then
- file = fs.open("os/SystemFiles/TaskbarShortcuts.txt","a")
- end
- file.writeLine(Name)
- file.writeLine(Path)
- file.writeLine(Image)
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement