REQ: (Windows) move AVI remove folder

Come up with a useful post-processing script? Share it here!
Post Reply
Miller_Heavy
Newbie
Newbie
Posts: 3
Joined: February 18th, 2009, 1:00 pm

REQ: (Windows) move AVI remove folder

Post by Miller_Heavy »

I have been trying to search and program my own script and not getting anywhere, can anybody help.
I would like it to move AVI to parent folder or category folder then remove the folder that the AVI was in.

TIA
markus101
Release Testers
Release Testers
Posts: 406
Joined: August 13th, 2008, 2:51 am

Re: REQ: (Windows) move AVI remove folder

Post by markus101 »

This will simply move the files to it's parent directory, but it will not rename them.

Code: Select all

cd /D "%1"
move *.avi ..

echo "move complete"
-Markus
Co-developer of NzbDrone (.Net NNTP PVR) - http://www.nzbdrone.com
Miller_Heavy
Newbie
Newbie
Posts: 3
Joined: February 18th, 2009, 1:00 pm

Re: REQ: (Windows) move AVI remove folder

Post by Miller_Heavy »

I think I figured out what I wanted.

Code: Select all

@echo off
cd /D "%1"
ren *.avi %1.avi
move *.avi ..
cd ..
rd /S /Q %1
Post Reply