0

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?

Codezilla
  • 946
  • 8
  • 16

2 Answers2

4

Use something like this maybe?

Prerequisites:

@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:

Drag and drop files

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

Vinayak
  • 10,625
  • 10
  • 54
  • 89
1

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

lalthomas
  • 317
  • 2
  • 9