rename files
real simple one I cant get to work. renaming a file in external dir.
d = @"C:\Users\user\Documents\3dsMax\previews\"
NewDir = @"D:\test\Test\"
--copy file
for f in getFiles (d + "_scene.avi") do
copyFile f (NewDir + getFilenameFile f + getFilenameType f)
--rename file
Files = (NewDir + "_scene.avi")
renamefile ((getFilenameFile files) ("test.avi"))
basically I want to rename _scene.avi to test.avi.
thanks folks
Comments
.
You can copy and rename files with one operation:
Tools and Scripts for Autodesk 3dsMax