Deleting SRT files after conversion

Here’s one that should work, it invokes cmd.exe and passes a delete command to it to delete a SRT file that lies in the destination directory with the same name as the converted file:

PostCustomCommandPath=C:\Windows\System32\cmd.exe
PostCustomCommandParameters="/c del "%destinationpath%\%convertedfilename%.srt""
PostCustomCommandHangPeriod=60
PostCustomCommandCritical=false
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
PostCustomCommandExitCodeCheck=false
1 Like