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?

  • Make an app that launches videos while also taking care of these things for you? – Louis 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 0:01

Use something like this maybe?


CMD /C "vlc --play-and-exit %*"
REM wait a second before deleting
ping -n 1 -w 1000 > nul
del /F /Q %*

Save that as VLCPlayAndDelete.bat and drop files onto the batch script like so:

Drag and drop files

The files will be deleted when VLC finishes playing all the files that were dropped onto the script.

  • 1
    Change del /F /Q %* to del /F /P %* to be prompted before deleting files. – Vinayak Aug 22 '14 at 12:18
  • Helpful image with your answer. How did you make that? – root Aug 22 '14 at 12:25
  • 1
    @root: That's an animated GIF image and you can make those easily using LICEcap – Vinayak Aug 22 '14 at 12:39

You can make of pot player for the purpose. Press Shift+del to delete the video while it plays.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.