Posted 14 October 2013 - 08:31 PM
Hi all,
this is probably uber simple and I have searched through the forums and google but couldn't find anything…
Basically, I want to be able to put all programs from a directory into a folder. I want to do this because I basically have a folder with updated programs, I want to move these programs to another directory.
e.g.,
All help is appreciated!
this is probably uber simple and I have searched through the forums and google but couldn't find anything…
Basically, I want to be able to put all programs from a directory into a folder. I want to do this because I basically have a folder with updated programs, I want to move these programs to another directory.
e.g.,
local allPrograms = {}
--"code to get the list of programs (from "/camp/updates/") here and put them in allPrograms"
for i,v in ipairs(allPrograms) do
fs.copy("allPrograms[1]", "/camp/"..allPrograms[1])
end
All help is appreciated!