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
General Forums
Newcomers Forum
Played videos statistics (log files?)
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="rekenaar" data-source="post: 563701" data-attributes="member: 27829"><p>Hi <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Mediaportal creates new log file everytime it is started.</p><p></p><p>One option is to remove your mediaportal shortcut and create a new shortcut to the batch file mp.cmd to start mediaportal.</p><p></p><p>Just change the hardcoded logsDir and mpDir and give it a try. It will basically copy the log files to a date directory and append the time to the filename. Then start mediaportal.</p><p></p><p>[code]</p><p>rem @echo off</p><p>rem ******************************</p><p>rem ** configure directories here</p><p>rem ******************************</p><p>set logsDir=C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\log</p><p>set mpDir=C:\Program Files\Team MediaPortal\MediaPortal</p><p>rem ******************************</p><p>c:</p><p>cd %logsDir%</p><p></p><p>for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c</p><p></p><p>for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a.%%b</p><p></p><p>echo %XDate% %Xtime%</p><p>md "%xdate%"</p><p>copy mediaportal.log "%xdate%"\mediaportal_"%xtime%".log </p><p></p><p>START "MP" "%mpDir%\mediaportal.exe"</p><p>EXIT</p><p></p><p>[/code]</p></blockquote><p></p>
[QUOTE="rekenaar, post: 563701, member: 27829"] Hi :) Mediaportal creates new log file everytime it is started. One option is to remove your mediaportal shortcut and create a new shortcut to the batch file mp.cmd to start mediaportal. Just change the hardcoded logsDir and mpDir and give it a try. It will basically copy the log files to a date directory and append the time to the filename. Then start mediaportal. [code] rem @echo off rem ****************************** rem ** configure directories here rem ****************************** set logsDir=C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\log set mpDir=C:\Program Files\Team MediaPortal\MediaPortal rem ****************************** c: cd %logsDir% for /f "tokens=1-3 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a.%%b echo %XDate% %Xtime% md "%xdate%" copy mediaportal.log "%xdate%"\mediaportal_"%xtime%".log START "MP" "%mpDir%\mediaportal.exe" EXIT [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
Newcomers Forum
Played videos statistics (log files?)
Contact us
RSS
Top
Bottom