How To: Rename .avi to the name of NZB on Windows?
Posted: August 21st, 2010, 8:45 pm
Hello!
I have zero experience with scripting. I am using the latest SAB with Windows. The built in features for categories, and clean up file list work perfectly.
I have tried searching this forum for over an hour and cannot find a solution. I want my TV shows to be organized in a particular way. I would like a script that works on Windows that would rename the .avi to the name of the .nzb or folder it is in. Since folder names are that of the NZB, it doesn't matter which one is used... whatever is more convenient. Then once that is complete, I would like for it to move that .avi to the folder directly outside of where it is currently located. However, if there are more than one .avi, then I would like for it to terminate the script and not do any renaming/moving at all.
For example,
1. NZB is downloaded: SHOW.NAME.S01E01.HDTV.XviD-GROUP.nzb
2. Once downloaded it shows \Downloads\TV\SHOW.NAME.S01E01.HDTV.XviD-GROUP\blah.avi
3. If more than one .avi file is found, terminate script otherwise run script.
3. If script is run, blah.avi should be renamed to SHOW.NAME.S01E01.HDTV.XviD-GROUP.avi and moved to \Downloads\TV
Would really appreciate any help!
Thank You.
I have zero experience with scripting. I am using the latest SAB with Windows. The built in features for categories, and clean up file list work perfectly.
I have tried searching this forum for over an hour and cannot find a solution. I want my TV shows to be organized in a particular way. I would like a script that works on Windows that would rename the .avi to the name of the .nzb or folder it is in. Since folder names are that of the NZB, it doesn't matter which one is used... whatever is more convenient. Then once that is complete, I would like for it to move that .avi to the folder directly outside of where it is currently located. However, if there are more than one .avi, then I would like for it to terminate the script and not do any renaming/moving at all.
For example,
1. NZB is downloaded: SHOW.NAME.S01E01.HDTV.XviD-GROUP.nzb
2. Once downloaded it shows \Downloads\TV\SHOW.NAME.S01E01.HDTV.XviD-GROUP\blah.avi
3. If more than one .avi file is found, terminate script otherwise run script.
3. If script is run, blah.avi should be renamed to SHOW.NAME.S01E01.HDTV.XviD-GROUP.avi and moved to \Downloads\TV
Would really appreciate any help!
Thank You.