[Windows] question about a script to delete garbage files
Posted: July 26th, 2012, 2:54 pm
I was doing a little reading here about simple scripts with .CMD file extensions. Reminds me of the days of MS-DOS and writing batch files.
Anyhow, I'm looking to create a simple script to run after a movie is downloaded to clean it up before it is moved to the movie folder and then scraped using ember media manager.
What I notice when most movies download is that in the folder containing the movie file, there are often .srt, .nfo, etc.
If I were to write a script that would delete everything other than the video file would it look something like this?
and so forth and so on?
Also, this may be asking a bit much but I'll shoot anyhow...
Occasionally the movie is in a double duplicate folder for example
MOVIE_FOLDER>MOVIE_FOLDER>movie file
If I wanted to reduce this to just one movie folder with the file inside, what would that look like? possible?
Thanks in advance!
Anyhow, I'm looking to create a simple script to run after a movie is downloaded to clean it up before it is moved to the movie folder and then scraped using ember media manager.
What I notice when most movies download is that in the folder containing the movie file, there are often .srt, .nfo, etc.
If I were to write a script that would delete everything other than the video file would it look something like this?
Code: Select all
del *.srt
del *.nfoAlso, this may be asking a bit much but I'll shoot anyhow...
Occasionally the movie is in a double duplicate folder for example
MOVIE_FOLDER>MOVIE_FOLDER>movie file
If I wanted to reduce this to just one movie folder with the file inside, what would that look like? possible?
Thanks in advance!