ArsonFG
ArsonFG

Reputation: 325

How to close a video after it ends in a batch script?

How can a .bat file open a .avi, .wmv,.mp4 or .mov file and make it close when the video ends?

Is it possible? If not, is there an alternative way to do that?

Upvotes: 2

Views: 1595

Answers (1)

NizonRox
NizonRox

Reputation: 143

Timeout command should do the deed for you if you know the fixed values of the vidoes your running. Ex.

start video.mp4
timeout 10 >nul
TASKKILL VLC.exe

Upvotes: 2

Related Questions