2011-09-20, 21:22
I wanted to clean up my movie folders and start from scratch and have Ember Media recreate the .nfo files for all my movies for me. Is there a method or program for removing all .nfo files in hundreds of folders?
del *.nfo /s
parslej Wrote:In windows:
Code:del *.nfo /s
Rygrath Wrote:To expand on what tonieb said.
Ember has the option to clean these up from movie folders
Edit -> Settings -> Options tab -> File System
On the right hand side check mark the items you want to have removed. For your specific question that would be "/movie.nfo" or "/<movie>.nfo". However you have them named.
Check those boxes, hit Apply then OK.
Then 'Tools menu -> Clean Files'. It will then give you a warning message showing you what it's about to delete and give you the option to continue or cancel. Click 'Yes' and it'll then go through the cleaning process. Remember to only check the items you want to delete because there is no undo option.
As tonieb also said, this only works for movies.
fluentdesigns Wrote:Is there any certain settings in Ember that is suggested to be used for XBMC? I want my media to have the most features available for XBMC.
olancasey Wrote:i prefer using xbmc as it scrapes trailers!
ember scapes trailers but you have to edit there url to work correctly..
OPTION EXPLICIT
DIM strExtensionsToDelete,strFolder
DIM objFSO
' ************************************************************
' Setup
' ************************************************************
' Folder to delete files from (files will also be deleted from subfolders)
strFolder = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".")
' A comma separated list of file extensions
' Files with extensions provided in the list below will be deleted
strExtensionsToDelete = "nfo"
' ************************************************************
set objFSO = createobject("Scripting.FileSystemObject")
RecursiveDeleteByExtension strFolder,strExtensionsToDelete
wscript.echo "Finished"
sub RecursiveDeleteByExtension(byval strDirectory,strExtensionsToDelete)
DIM objFolder, objSubFolder, objFile
DIM strExt
set objFolder = objFSO.GetFolder(strDirectory)
for each objFile in objFolder.Files
for each strExt in SPLIT(UCASE(strExtensionsToDelete),",")
if RIGHT(UCASE(objFile.Path),LEN(strExt)+1) = "." & strExt then
objFile.Delete
exit for
end if
next
next
for each objSubFolder in objFolder.SubFolders
RecursiveDeleteByExtension objSubFolder.Path,strExtensionsToDelete
next
end sub
rm `find . -name "*.nfo"`
schneidz Wrote:from other responses it seems you are using windows.
i honestly think booting xbmc-live (ctrl-alt-f2 to get to a terminal) and doing
would be easiest.Code:rm `find . -name "*.nfo"`