How can I rename folders and files in a single process?

All about user-defined episode / movie / file name format expressions
Post Reply
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

How can I rename folders and files in a single process?

Post by Biff »

How can I rename folders and files in a single process?
Q: How can I rename folders? It's only letting me rename files when I drop folders!
A: When you drop a folder into the "Original Files" area it will add all the files within that folder. Just add folders via Link-Drop (Ctrl+Shift+Drop) if you want to move/copy folders as a single unit
Newest portable, stable FileBot, Windows 10 Home, 64bit
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How can I rename folders and files in a single process?

Post by rednoah »

1.
Drag in folders with Ctrl+Shift+Drop

2.
Drag in additional files with Ctrl+Drop
:idea: Please read the FAQ and How to Request Help.
Biff
Posts: 241
Joined: 02 Mar 2014, 17:52

Re: How can I rename folders and files in a single process?

Post by Biff »

Ah, great, thank you very much, rednoah.
Newest portable, stable FileBot, Windows 10 Home, 64bit
arielreyes001
Posts: 11
Joined: 29 Jan 2013, 00:35

Re: How can I rename folders and files in a single process?

Post by arielreyes001 »

is it possible to do this from the command line? I am currently using this to rename a 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?

Update:
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?
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How can I rename folders and files in a single process?

Post by rednoah »

If you're using CMD then the answer is probably %1 or %* but if you need help with using the shell or cmdline or whatever then Google will be your best friend.
:idea: Please read the FAQ and How to Request Help.
Post Reply