Posted 20 January 2013 - 07:09 AM
The Code:
renameFile = true
if renameFile == true then
x = shell.getRunningProgram()
print("EnderOS is renaming this file to ."..x.." for your safety!")
[This is where it will pull the file name and change it, just can't figure out how to]
end
Any help is highly appreciated :)/>
Edit: Could I just do shell.run("rename",x,".(x)") ?
renameFile = true
if renameFile == true then
x = shell.getRunningProgram()
print("EnderOS is renaming this file to ."..x.." for your safety!")
[This is where it will pull the file name and change it, just can't figure out how to]
end
Any help is highly appreciated :)/>
Edit: Could I just do shell.run("rename",x,".(x)") ?