Posted 29 March 2014 - 09:08 AM
I'm a coding noob and I go research a lot and I done my first programs.
Code:
4/6/2014
New Code:
Code:
function printUsage()
print("Usage: replace <replace> <root>")
return
end
local arg = {...}
local del = arg[1]
local copy = arg[2]
if #arg < 2 then
printUsage()
return
end
print("Replacing "..copy.." to "..del)
fs.delete(del)
fs.copy(copy,del)
4/6/2014
New Code:
function printUsage()
print("Usage: replace <replace> <root>")
return
end
local arg = {...}
local del = arg[1]
local copy = arg[2]
if #arg < 2 then
printUsage()
return
end
print("Replacing "..copy.." to "..del)
fs.delete(del)
fs.copy(copy,del)
Edited on 06 April 2014 - 01:00 AM