Batch renaming a sequence of files (command line)

   2491   2   1
User Avatar
Member
43 posts
Joined: 3月 2007
Offline
Hello

I have a sequence of files with scrambled numbers and I need to batch convert it to a new ordered sequence of files with number padding(e.g: frame0017, frame01, frame012 -> frame001, frame002, frame003).

Any ideas of what parameter/variable is used to create a padded sequence number in Houdini Command Line?

This is what I have so far:

for %i in (*.*) do ren %i newname%XXXX%~xi

I am trying various syntax in %XXXX as I can't find the padded sequence option.

Any ideas or tips are welcome.

Thanks in advance.






User Avatar
Member
280 posts
Joined:
Offline
i used this little utility called lupaz rename
http://rename.lupasfreeware.org/lupasrename.php [rename.lupasfreeware.org]
User Avatar
Member
43 posts
Joined: 3月 2007
Offline
Thanks! This is handy
  • Quick Links