Renaming file and folder from command line
Posted: 13 Feb 2015, 20:24
is it possible to do this from the command line? I am currently using this to rename files from a button in my Directory Opus (file manager) toolbar:
C:\Program Files\FileBot\filebot -rename {F} --format "{n} ({y}) [{vf}]" -non-strict
How can I do the same for the folder that the same file currently resides in. Or even on its own, what's the command so that it only renames a folder, not a file?
I'm thinking this would work:
C:\Program Files\FileBot\filebot -script fn:renall "path/to/movies" -non-strict --db TheMovieDB --def target=folder
However I don't know how to make the "path/to/movies" dynamic. Meaning I want to run this script on the selected folder, or the parent folder of the selected file. Is this possible?
Thanks,
AR
C:\Program Files\FileBot\filebot -rename {F} --format "{n} ({y}) [{vf}]" -non-strict
How can I do the same for the folder that the same file currently resides in. Or even on its own, what's the command so that it only renames a folder, not a file?
I'm thinking this would work:
C:\Program Files\FileBot\filebot -script fn:renall "path/to/movies" -non-strict --db TheMovieDB --def target=folder
However I don't know how to make the "path/to/movies" dynamic. Meaning I want to run this script on the selected folder, or the parent folder of the selected file. Is this possible?
Thanks,
AR