But I got it working by telling dirmon2 to start the following batch file as soon as thee wtv file is created. The batch file then waits 5 minutes before starting comskip. It might be a nice feature to add a wait parameter to comskip to avoid this. Anyway, here's the batch file if anybody else is interested.
Code: Select all
rem Get the [path\filename].wtv from dirmon2 command line
set a=%1
rem Create a temporary [path\filename].txt file so dirmon2 won't start this bat again
echo temp > %a:.wtv=.txt%
rem Wait 5 minutes
timeout /t 300 /nobreak > NUL
rem Now delete the temporary .txt file created above
del %a:.wtv=.txt%
rem And start comskip
C:\Comskip\comskip.exe --ini=C:\Comskip\comskip.ini %1