I know you can have vlc shut down your pc after you finish playing something but I'm trying to figure out a way to delete the file, preferably with a confirmation dialog box after you finish playing something. Ideally it would only do this if the file was actually played to at least 90% of the file so as not to have unnecessary deletions but that may not be possible. Running a batch file to play the video would work, but it'd have to be something easy to do. Having to edit a batch file with the name of the video to play each time would get old fast. Any ideas?
Asked
Active
Viewed 4,923 times
0
-
Make an app that launches videos while also taking care of these things for you? – Louis Waweru Aug 20 '14 at 22:32
-
I was hoping to find something that was already built though I have been considering that option. – Codezilla Aug 21 '14 at 00:01
2 Answers
4
Use something like this maybe?
Prerequisites:
- Add the location of VLC Player to the PATH variable
@ECHO OFF CMD /C "vlc --play-and-exit %*" REM wait a second before deleting ping 1.1.1.1 -n 1 -w 1000 > nul del /F /Q %* PAUSE
Save that as VLCPlayAndDelete.bat and drop files onto the batch script like so:

The files will be deleted when VLC finishes playing all the files that were dropped onto the script.
-
1Change `del /F /Q %*` to `del /F /P %*` to be prompted before deleting files. – Vinayak Aug 22 '14 at 12:18
-
-
1@root: That's an animated GIF image and you can make those easily using [LICEcap](http://www.cockos.com/licecap/) – Vinayak Aug 22 '14 at 12:39
1
You can make of pot player for the purpose. Press Shift+del to delete the video while it plays.
lalthomas
- 317
- 2
- 9