Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- --HASH MUST MATCH RECEIVER HASH, OTHERWISE FILES WILL FAIL TO SEND
- hash = "HASH"
- tArgs = {...}
- id = tonumber(tArgs[1])
- if fs.exists(tArgs[2]) then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Sending File "..tArgs[2].."...")
- rednet.send(id, hash)
- rednet.send(id, tArgs[2])
- file = fs.open(tArgs[2], "r")
- rednet.send(id, file.readAll())
- else
- print(tArgs[2].." does not exist.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement