I'm trying to remove a folder and a file from my Update Script before downloading the new stuff. Somehow the way I'm trying I don't have the right permissions. What am I doing wrong.
-- remove old
local ok, err = pcall(shell.execute,"cd..")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
local ok, err = pcall(shell.execute,"rm sg")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
local ok, err = pcall(shell.execute,"rm autorun.lua")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hi,
I'm trying to remove a folder and a file from my Update Script before downloading the new stuff. Somehow the way I'm trying I don't have the right permissions. What am I doing wrong.
Thanks!
Link to post
Share on other sites