In Windows, after double-clicking a video file, when it's finished, I want the file to be moved up a dir or 2, and any containing folder deleted.
I only want this to affect files located in C:\Users\User1\Downloads
, say %x%
.
There are 2 scenarios:
If the file is
%x%\Training.4273865.2013.avi
, it should be moved to..\Viewed\
.If the file is
%x%\Showcase\SomeFile.mp4
, it should be moved to the same folder:..\..\Viewed\
. TheShowcase
folder should then be deleted. Currently, I have to close VLC (to close the file handle) beforeShowcase
(and it's other contents) can be deleted.
A c# solution would be good, but I don't mind any language I can compile with visual-studio-2012 or similar open-source compiler.