1.12.0 - Redirected log path: some files created in standard path | Page 3

Discussion in 'Archive' started by HTPCSourcer, August 9, 2015.

  1. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    mklink


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    See this post early in this thread - https://forum.team-mediaportal.com/...created-in-standard-path.131632/#post-1147325

    Symbolic links (or 'symlinks') work like Windows shortcuts, except that they are transparent to the software ('shortcuts' need to be supported in the software to work, so they are not actually generally useful things).

    What they allow you to do is have a 'virtual' file or folder in one place that actually physically exists somewhere else e.g. on a different drive or on a another PC via a UNC path etc.

    I've used them myself in the past to move the MP client log folder to a RAMdrive (I don't bother doing that now, since today we have threaded logging in the filters so the important code doesn't get slowed down writing log lines directly out to disk).
     
    • Like Like x 1
  4. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Last edited: August 22, 2015
    • Thank You! Thank You! x 1
    • Funny Funny x 1
  5. regeszter
    • Premium Supporter

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,152 / 18
    Home Country:
    Hungary Hungary
    As I wrote: mklink. This is an inbuilt windows command.
     
    • Agree Agree x 1
  6. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,269
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,228 / 9
    Home Country:
    France France
    Show System Specs
  7. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    @HTPCSourcer

    Attached are versions of dshowhelper and TsReader which read their logging path from the registry.

    The default path is unchanged - ProgramData\Team MediaPortal\MediaPortal\log - and they will automatically create the reg key and value for that path (if the key/value doesn't already exist), but you can change it to whatever you want afterwards, including UNC paths etc.

    The registry key is in: HKEY_CURRENT_USER\Software\Team MediaPortal\Client Common

    The registry value is called 'LogFolderPath' and is a REG_SZ type.

    Note it is one value for both dshowhelper and TsReader - it makes it easier to change....

    Have fun ;)
     

    Attached Files:

    Last edited: August 23, 2015
    • Thank You! Thank You! x 1
  8. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,744
    Likes Received:
    1,125
    Gender:
    Male
    Ratings:
    +2,408 / 22
    Home Country:
    Germany Germany
    Show System Specs
    Hi @Owlsroost ,

    I do appreciate your efforts :).

    However, I don't think that it is a good idea to start a development where directory path information would begin to be scattered throughout the registry and needs to be maintained manually. Also your versions would need to become part of the official builds. Anayway, unless we cannot harmonize everything to correctly use the information as per the mediaportaldirs.xml, my personal view would be to keep things as they are now rather than promoting this possibility.

    Actually, the symbolic link possibilities would be as good as the mediaportaldirs.xml, wouldn't they? So why actually bothering about mediaportaldirs when a simple batch script could do the job? Or am I missing something?
     
  9. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    @HTPCSourcer

    Do you actually read my posts - e.g. from https://forum.team-mediaportal.com/...d-in-standard-path.131632/page-2#post-1149459

    ...that is why (if we want to move away from hard-wired log paths) the log path settings need to be independent of the MP1 and MP2 applications.

    As far as Microsoft are concerned the Windows Registry *is* the correct place for this sort of information (that is why MS provides it - and all the software tools use it - to avoid apps scattering settings information around in various private files on the system - e.g. the .ini files that old versions of Windows used).

    You are not looking at the big picture here....

    The MP registry settings that exist at present are not "scattered throughout the registry" - they are all grouped together in HKEY_CURRENT_USER\Software\Team MediaPortal and it's sub keys.
     
    • Thank You! Thank You! x 1
  10. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,269
    Likes Received:
    6,221
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,228 / 9
    Home Country:
    France France
    Show System Specs
    I think i understand what @HTPCSourcer think (or maybe not).
    What is needed now :) is to write the new path (from C# change MP config to registry).
    Like this when we change the default path in MP config, it auto write it in registry (with your mod of course).

    I think this change can be done more easily now with your WIP change :)
    I remember using that C# code to registry for Cyberlink PowerDVD codec setting lol.

    So to summarize, with your addon, the user set the path manually or with an addon on C# side, the part is auto writed :)
     
    • Agree Agree x 1
  11. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,537
    Likes Received:
    2,829
    Location:
    Cambridge
    Ratings:
    +4,131 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    All it needs is for someone to modify the MP settings management code to write a registry key/value - the new filters will read it and write the log files to a different folder - simple :)
     
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!