IMDB movie conflicts? (2 Viewers)

Zay

New Member
August 5, 2013
5
0
59
Home Country
United States of America United States of America
Ah, kool, thanks so much for your patience and assistance. I did write the script to do the renaming, I will post it in case anyone wants to do use it. I will try to frequent this forum since while I don't have any knowledge of MP, I do have IT experience that I can possibly share on other issues. Thanks again. In fact here is the script for anyone that wants it.
************************************************************
How to use the script:
Try the script below; it's currently in test mode and will only display the "ren" commands it would normally run, so that you can test it. Remove the uppercase ECHO in line 13 to run it for real. Start it from an open command prompt, not with a doubleclick from Explorer; you can stop the script by hitting <Ctrl-C>.
@echo off
setlocal enabledelayedexpansion
set SearchRoot=D:\Temp
set FilterList=*.srt *.mp4 *.avi *.wmv
set ExcludeFolderList=Trailers
for /r "%SearchRoot%" %%a in (%ExtensionList%) do (
echo Processing '%%~fa' ...
set FolderPath=%%~dpa
for %%f in ("!FolderPath:~0,-1!") do set FolderName=%%~nxf
set ExcludeFolder=False
for %%e in (%ExcludeFolderList%) do (if /i "%%~e"=="!FolderName!" set ExcludeFolder=True)
if /i "!ExcludeFolder!"=="False" (
ECHO ren "%%~fa" "!FolderName!%%~xa"
) Else (
echo ... skipped folder '!FolderName!'.
)
)
 

Users who are viewing this thread

Top Bottom