How to rename and move files in separate folder
Posted: 22 Jun 2016, 20:36
I have some video in separate folder in C:
WEST FOLDER, ANIMATION FOLDER and ANIME FOLDER
I make code to move that video from C: to G:
G:/BACKUP/DOWNLOAD/FILM/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating})/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating}){subt}
when I use that code, I hope it will make this:
G:/BACKUP/DOWNLOAD/FILM/WEST FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIMATION FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIME FOLDER
But all video just go to G:/BACKUP/DOWNLOAD/FILM/
-----------
So I try manually without filebot, move video to
G:/BACKUP/DOWNLOAD/FILM/WEST FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIMATION FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIME FOLDER
then I use this filebot code in every folder one by one
{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating})/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating}){subt}
but all video just go to
G:/BACKUP/DOWNLOAD/
example
G:/BACKUP/DOWNLOAD/X-Men (2013) (Action) (8.8)
G:/BACKUP/DOWNLOAD/Finding Nemo (2011) (Action) (5.1)
G:/BACKUP/DOWNLOAD/Naruto (2010) (Action) (6.2)
----------
What is mistake in my code?
Thanks for your help.
WEST FOLDER, ANIMATION FOLDER and ANIME FOLDER
I make code to move that video from C: to G:
G:/BACKUP/DOWNLOAD/FILM/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating})/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating}){subt}
when I use that code, I hope it will make this:
G:/BACKUP/DOWNLOAD/FILM/WEST FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIMATION FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIME FOLDER
But all video just go to G:/BACKUP/DOWNLOAD/FILM/
-----------
So I try manually without filebot, move video to
G:/BACKUP/DOWNLOAD/FILM/WEST FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIMATION FOLDER
G:/BACKUP/DOWNLOAD/FILM/ANIME FOLDER
then I use this filebot code in every folder one by one
{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating})/{n.replaceAll(/[:|]/, " - ")} ({y}) ({genres.take(2).join(' ')}) ({omdb.rating}){subt}
but all video just go to
G:/BACKUP/DOWNLOAD/
example
G:/BACKUP/DOWNLOAD/X-Men (2013) (Action) (8.8)
G:/BACKUP/DOWNLOAD/Finding Nemo (2011) (Action) (5.1)
G:/BACKUP/DOWNLOAD/Naruto (2010) (Action) (6.2)
----------
What is mistake in my code?
Thanks for your help.