home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
TV-Server
ComSkip files left behind
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="usualsuspect" data-source="post: 638103" data-attributes="member: 91679"><p><strong>AW: ComSkip files left behind</strong></p><p></p><p></p><p></p><p>I once created a batch the other way around, but this could be helpful for you, too: <a href="https://forum.team-mediaportal.com/plugins-erweiterungen-178/comskip-atomatisieren-per-batch-73753/" target="_blank">https://forum.team-mediaportal.com/plugins-erweiterungen-178/comskip-atomatisieren-per-batch-73753/</a></p><p></p><p>here a quick draft:</p><p>[CODE]@echo off</p><p>rem deletes left over files (in active dir and subdirs) %%I.* (eg from comskip) when the recording %%I.ts is no longer avaiable</p><p>rem</p><p>FOR /R %%I IN (*.*) DO IF NOT EXIST "%%~dI%%~pI%%~nI.ts" (</p><p> del %%~nI.*</p><p>)</p><p>exit</p><p>[/CODE]</p><p></p><p>IMPORTANT: I did not check it till now. therefore be sure to DO NOT run this batch in your actual recordings directory before checking!!!</p><p></p><p></p><p>edit: I just checked the batch and it works fine. BUT be careful: it will delete all files xyz.* that do not have a corresponding xyz.ts file. (even the batch itself, so be sure to have a clean.ts file when your batch is named clean.bat)</p><p></p><p>To make it a little bit more specific, you may change the batch to something like:</p><p>[CODE]FOR /R %%I IN (*.*) DO IF NOT EXIST "%%~dI%%~pI%%~nI.ts" (</p><p> del %%~nI.txt</p><p> del %%~nI.log</p><p> del %%~nI.xyz</p><p>)[/CODE]</p></blockquote><p></p>
[QUOTE="usualsuspect, post: 638103, member: 91679"] [b]AW: ComSkip files left behind[/b] I once created a batch the other way around, but this could be helpful for you, too: [URL="https://forum.team-mediaportal.com/plugins-erweiterungen-178/comskip-atomatisieren-per-batch-73753/"]https://forum.team-mediaportal.com/plugins-erweiterungen-178/comskip-atomatisieren-per-batch-73753/[/URL] here a quick draft: [CODE]@echo off rem deletes left over files (in active dir and subdirs) %%I.* (eg from comskip) when the recording %%I.ts is no longer avaiable rem FOR /R %%I IN (*.*) DO IF NOT EXIST "%%~dI%%~pI%%~nI.ts" ( del %%~nI.* ) exit [/CODE] IMPORTANT: I did not check it till now. therefore be sure to DO NOT run this batch in your actual recordings directory before checking!!! edit: I just checked the batch and it works fine. BUT be careful: it will delete all files xyz.* that do not have a corresponding xyz.ts file. (even the batch itself, so be sure to have a clean.ts file when your batch is named clean.bat) To make it a little bit more specific, you may change the batch to something like: [CODE]FOR /R %%I IN (*.*) DO IF NOT EXIST "%%~dI%%~pI%%~nI.ts" ( del %%~nI.txt del %%~nI.log del %%~nI.xyz )[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
ComSkip files left behind
Contact us
RSS
Top
Bottom